My Assistant
![]() ![]() |
|
|
Jan 31 2007, 07:22 PM
Post
#1
|
|
|
UtterAccess Veteran Posts: 306 |
On my form I have a text box whos Control source is set to "=DLookUp("[Inspection]","qryInspectionUsed")" When a employee selects a value from a combo box this value changes. This works, but I need to figure out how to get that value in the textbox entered into the table when the "SubmitData" button is pressed. Can this be done?
|
|
|
|
Jan 31 2007, 07:34 PM
Post
#2
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
Without knowing more about the value you are saving I am not sure you should save it as it sounds like it already exists in the db. Anyway, here is how to do it... In the After Update event of the combo box:
Me.NameOfControl = DLookUp("[Inspection]","qryInspectionUsed") hth, Jack |
|
|
|
Jan 31 2007, 07:58 PM
Post
#3
|
|
|
UtterAccess Veteran Posts: 306 |
thats what i needed. Thanks for steering me in the right direction!
|
|
|
|
Jan 31 2007, 08:06 PM
Post
#4
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
You are most welcome!
Jack |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 23rd May 2013 - 09:13 AM |