Would like to refer to a query other than the table form is basedon.

  • Thread starter Thread starter Brainwave Surfer
  • Start date Start date
B

Brainwave Surfer

I'd like to refer to a query that is a pass-thru query to get a
username, then in a form that is based on another table, use that
query's result to lock and unlock fields for updates.

Right now I'm trying to do that in visual basic by trying to get the
query's data directly, failed, and tried to create a bound textbox to
get the data.. I really don't care how it gets done..

any ideas? maybe I'm barking up the wrong tree?

Jim
 
You cant bind an individual textbox to a query. But you can use Dlookup to
return a single result, and put that into a textbox.

me.MtTextbox = Dlookup("TableField","Table","Criteria")

Substitute your own names of course.

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
Back
Top