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

combo box and record navigation



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 04:43 PM
steve
external usenet poster
 
Posts: n/a
Default combo box and record navigation

I have a simple form with a combo box that I'm using to
select the records. But when I open the form the combo
box is empty but the first record is selected, also when
I use the navigation buttons the combo box dose not
change but the record dose. How do I update the combo box
with the appropriate record?
  #2  
Old June 7th, 2004, 06:09 PM
Roger Carlson
external usenet poster
 
Posts: n/a
Default combo box and record navigation

Assuming you used the ComboBox wizard to create the combo box, the combo is
probably bound to the primary key field of the record. So in the OnCurrent
event of the form, set the combo value to the value of the primary key of
the current record. Like this:

Private Sub Form_Current()
Me!cboISBN = Me!BookID
End Sub

Where BookID is the primary key field of the record.

--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org


"steve" wrote in message
...
I have a simple form with a combo box that I'm using to
select the records. But when I open the form the combo
box is empty but the first record is selected, also when
I use the navigation buttons the combo box dose not
change but the record dose. How do I update the combo box
with the appropriate record?



 




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 12:00 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.