Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

East Question for most of you

Status
Not open for further replies.

Wes98765

Programmer
Jul 31, 2002
135
US
Hey guys,
I have two fields in a table one called time that is a drop down and gets its information from another table. The other field is dayofweek. I want to be able to select a time and have the dayofweek automatically fill in based on the time selected from the data in the other table.

Thanks for any help

Wes
 
If the time field is a combobox, set the column count to 2 and bound column to 1. Set the source to pull the time and dayofweek. Set the widths to 1cm;0cm (thus hiding the 2nd column). Afterupdate of time combo, pass the dayofweek field the value from column 2 of the time combo.

...
'Column numbers in code start from 0
Me.DayOfWeek = Me.Time.Column(1)
... On On
Johnathan Perry
 
Thanks alot for your help!! Where do I add the code Me.DayOfWeek....
 
I set the dayofweek field to 0 width but it is still visible. That is ok I am just wondering what I am doing wrong.
 
Great I figured it out. Now I need to insert that information into table Data and thats it. I am not sure how to do that either lol.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top