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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access 97 - Synchronize a combo box and text box



 
 
Thread Tools Display Modes
  #1  
Old August 7th, 2004, 05:37 PM
Darren
external usenet poster
 
Posts: n/a
Default Access 97 - Synchronize a combo box and text box

I have a list of facilities in a combo box. Once I
select a facility I would like the address to appear in
the text box. I'm stumped any help would be greatly
appreaciated.

PS I have a very basic knowledge of Access

Darren
  #2  
Old August 7th, 2004, 06:49 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default Access 97 - Synchronize a combo box and text box

Darren

If you include the address as part of the data returned for the combo box
list, you can set the value of your text box to the address of the selection
in the combo box.

In the AfterUpdate event of the combobox, you would add something like:

Me!txtMyTextBox = Me!cboMyComboBox.Column(n)

Note that the .Column() method uses 'zero-based' numbering -- if the address
was the second column in your combobox query, you'd use .Column(1) to get
it.

--
Good luck

Jeff Boyce
Access MVP

  #3  
Old August 7th, 2004, 07:33 PM
Ken Snell
external usenet poster
 
Posts: n/a
Default Access 97 - Synchronize a combo box and text box

See The ACCESS Web:
http://www.mvps.org/access/forms/frm0058.htm


--

Ken Snell
MS ACCESS MVP

"Jeff Boyce" -DISCARD_HYPHEN_TO_END wrote in message
...
Darren

If you include the address as part of the data returned for the combo box
list, you can set the value of your text box to the address of the

selection
in the combo box.

In the AfterUpdate event of the combobox, you would add something like:

Me!txtMyTextBox = Me!cboMyComboBox.Column(n)

Note that the .Column() method uses 'zero-based' numbering -- if the

address
was the second column in your combobox query, you'd use .Column(1) to get
it.

--
Good luck

Jeff Boyce
Access MVP



 




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


All times are GMT +1. The time now is 07:16 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.