Information générale
Catégorie:
Codage, syntaxe et commandes
LOL!
>Roi,
>
>Sometimes the most painfully easy things go overlooked. That's exactly what I was looking for. Thanks. (However, I thought the controlsource was the property of the object that says where to SAVE something. I guess there's more to it than that) Nevertheless, it worked. My thanks to everyone.
>
>JD
>
>
>>PMFJI, Just bind the text box to the field that contains the po number.
>>
>>Assuming the default value of the PO# field is GetNextKey('MyTable') or something, when you APPEND BLANK the new record will contain the po number.
>>
>>In your text box change the .controlsource property to point at the table.field that holds the po number.
>>
>>-or-
>>
>>Do it by hand with: thisform.MyTextbox.value = GetNextKey('MyTable')
>>
>>>I'm with you on that part. I guess what i'm asking is how to show the appended record's ID in a text box on the form. When this form is used, I will be on the phone with my customers and will need to give them this number. I'm fairly new to foxpro programming and don't know if i can accomplish this with a simple statement or if I need to create some kind of modified form to pull from.
>>>
>>>
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement