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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set a variable from a table entry

Status
Not open for further replies.

DavidMark

Programmer
Feb 28, 2002
28
EU
Simple one this, just can't find the solution!! I have a table with one field with one entry (a time/date stamp from another DB). What I need to do is set a variable based on the tables contents. I am currently using a 'round-the-houses' approach, but this involves a maketable, which I don't really want to do. Anyone got a snippet of code I can use?

Thanks in advance

Dave
detec123@aol.com
 
Simple one this, just can't find the solution!! I have a table with one field with one entry (a time/date stamp from another DB). What I need to do is set a variable based on the tables contents. Anyone got a snippet of code I can use?

Thanks in advance

Dave
detec123@aol.com
 

Have you tried using DLookup?

VarName = DLookUp("ColName","TableName") Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
New it had to be simple! Thanks for your help.

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top