A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Populate a text box



 
 
Thread Tools Display Modes
  #1  
Old July 6th, 2004, 12:01 AM
Damien McBain
external usenet poster
 
Posts: n/a
Default 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  
Old July 6th, 2004, 12:09 AM
Damien McBain
external usenet poster
 
Posts: n/a
Default 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  
Old July 6th, 2004, 02:16 AM
Graham R Seach
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 03:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.