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  

Setting the value in a combobox at Load



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 09:11 PM
GregK
external usenet poster
 
Posts: n/a
Default Setting the value in a combobox at Load

I am trying to prepopulate the value in a combo box during the Load event if the related records already have a value assigned. The example would be a room choice. The reservation has already been entered and the room choice has been set. The agent returns to the record and I want the room choice combo box to match the record accessed. The record will be in a subform but the field that ties both the form and subform is available from either. I have specified a query to get the information, I am having trouble getting the recordset open command to work.
  #2  
Old June 9th, 2004, 02:11 AM
ChrisJ
external usenet poster
 
Posts: n/a
Default Setting the value in a combobox at Load

If your combobox is bound to a field within the datasource
of the form, and the rowsource of the combobox has the
same field in the ordinal position set by the "bound
column" property, it should all work.
you shouldn't need to do anything in the form load event.


-----Original Message-----
I am trying to prepopulate the value in a combo box

during the Load event if the related records already have
a value assigned. The example would be a room choice.
The reservation has already been entered and the room
choice has been set. The agent returns to the record and
I want the room choice combo box to match the record
accessed. The record will be in a subform but the field
that ties both the form and subform is available from
either. I have specified a query to get the information,
I am having trouble getting the recordset open command to
work.
.

 




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 09:38 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.