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

Syntax question Combo.OldValue

Status
Not open for further replies.

millrat

Technical User
Dec 23, 2003
98
US
Hi all,

I have audit trail using Me.Combo_OldValue and Me.Combo.Value. This gives only numbers in my table i.e. Column(0).

How to use Column(1) for text and what is correct syntax for below?

e.g. Me.Combo.Column(1).OldValue...(this don't work but it's what I want)

Cheers,
millrat
 
Perhaps you may retrieve the old text value with DLookUp ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PHV,

Thanks for the quick reply.

I'm not familiar with DLookup but...

DLookup(Me.Combo.Column(1),, Criteria? Not sure what to put here)


Cheers,
 
What is the actual SQL code of the combo's RowSource property ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PHV,

Only 2 columns...

SELECT tblArea.ID, tblArea.Area FROM tblArea

 
PHV,

Is this on the right track?

DLookup(Me.Area.Column(1),, "tblArea.ID =" & Me.Area.OldValue)
 
strOldText = DLookUp("Area", "tblArea", "ID=" & Me!Combo_OldValue)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PHV,

Thanks, works like a charm...

Cheers,
millrat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top