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

How do I programatically get a field value from a table?

Status
Not open for further replies.

VBAguy22

IS-IT--Management
Aug 5, 2003
180
CA
Hello
I have an Access table. I have a field called "LastUpdateDate" which is the same for the entire table and contains the last date of the last update of the information in the table.
How do I programatically retrieve last update date?
 
Are you saying you have a field in your table that has the same value for every record?

Wierd.

 
no no
it has the same value for every record only in one field. sorry for misunderstanding
I'd be happy if i got the first value of that field
 
Your fingers say "no no" but your explanation says "yes yes".

Not that's its really important for your question, but why would you have a field whose value on every record is the same?

Do you update that field in every record to a constant value every time something is updated?

As to your question
[tt]
myLastUpdateDate = DFirst ( "LastUpdateDate", "TableName" )
[/tt]
 
OK, I give up. Why do you have a field with the same value for every record in your table? Surely you could just store it in one record of another table. The suspense is killing me.
 
VBAguy, it's Friday so I predict you're going to romp home as "Denormaliser of The Week".

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top