Store 3rd field of a query in a text box

eddy

Registered User.
Local time
Today, 14:36
Joined
Nov 30, 2005
Messages
23
I need to set a value of a text box to the 3rd field of a query when I click a command button in the form. It'll run the query, extract the 3rd field and show it in the text box. Can anyone show me a snippet of code that would do it or something similar?
 
Didn't work :(
 
I use VB so try:

AfterUpdate on combi

Forms![MyForm]![MyTextBox] =Forms![MyForm]![MyCombi].Column(2)

or in Control Source of MyTextBox =Forms![MyForm]![MyCombi].Column(2)

Simon
 

Users who are viewing this thread

Back
Top Bottom