If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Populate a text box
Hi yall,
2 questions: 1/ I want to design a data entry form which doesn't create a record until the user clicks a "save" button. It will be used by quite a lot of users at the same time and I want to avoid conflicts in the assignment of the autonumber. How do I do this? I think a bunch of unbound controls then some code in the OnClick event of the button but I'm not sure how to create a record and populate the fields in VB. 2/ The table that will be updated contains fields like CustomerNumber (a numeric key only) but the descriptions are in another table called customers. On the form I can create a combo box on the key field with 2 columns so the user can select a customer name but populate a customer number into the field. I want to have an unbound text box next to the CustomerNumber combo which will display the description from the other table after update. What do I need in the afterupdate event of the combo? Any assist appreciated. Damo |
#2
|
|||
|
|||
Populate a text box
My second question is already answered below in the message entitled
"Look-up Fields (I think!)". It must be a candidate for FAQ status. Damien McBain wrote: Hi yall, 2 questions: 1/ I want to design a data entry form which doesn't create a record until the user clicks a "save" button. It will be used by quite a lot of users at the same time and I want to avoid conflicts in the assignment of the autonumber. How do I do this? I think a bunch of unbound controls then some code in the OnClick event of the button but I'm not sure how to create a record and populate the fields in VB. 2/ The table that will be updated contains fields like CustomerNumber (a numeric key only) but the descriptions are in another table called customers. On the form I can create a combo box on the key field with 2 columns so the user can select a customer name but populate a customer number into the field. I want to have an unbound text box next to the CustomerNumber combo which will display the description from the other table after update. What do I need in the afterupdate event of the combo? Any assist appreciated. Damo |
#3
|
|||
|
|||
Populate a text box
Damien,
There won't be any conflicts with the assignment of the autonumber. It'll be fine. Regards, Graham R Seach Microsoft Access MVP Sydney, Australia Microsoft Access 2003 VBA Programmer's Reference http://www.wiley.com/WileyCDA/WileyT...764559036.html "Damien McBain" wrote in message ... Hi yall, 2 questions: 1/ I want to design a data entry form which doesn't create a record until the user clicks a "save" button. It will be used by quite a lot of users at the same time and I want to avoid conflicts in the assignment of the autonumber. How do I do this? I think a bunch of unbound controls then some code in the OnClick event of the button but I'm not sure how to create a record and populate the fields in VB. 2/ The table that will be updated contains fields like CustomerNumber (a numeric key only) but the descriptions are in another table called customers. On the form I can create a combo box on the key field with 2 columns so the user can select a customer name but populate a customer number into the field. I want to have an unbound text box next to the CustomerNumber combo which will display the description from the other table after update. What do I need in the afterupdate event of the combo? Any assist appreciated. Damo |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Too many hyperlinks? | [email protected] | Powerpoint | 7 | May 25th, 2004 02:19 AM |
Edit same text in multiple locations | angelo11 | Formatting Long Documents | 2 | May 19th, 2004 06:24 PM |
Edit same text in multiple locations | Angelo | Formatting Long Documents | 3 | May 19th, 2004 03:43 PM |
Vertical Text Orientation | Paul Anderson [MSFT] | Visio | 0 | May 11th, 2004 05:16 PM |
Text boxes-help | Jon Peltier | Charts and Charting | 0 | January 26th, 2004 05:46 PM |