Multiple DLookup Syntax (1 Viewer)

burrina

Registered User.
Local time
Today, 09:56
Joined
May 10, 2014
Messages
972
Me.txtversion = "Ver:" & " " & DLookup("[txtVersionMajor] & " - " & [txtVersionMinor] & " - " & [txtVersionRevision]", "tblVersionInfo")


What's wrong with my syntax ? It's the "-" part that is the problem.
 
Last edited:

plog

Banishment Pending
Local time
Today, 09:56
Joined
May 11, 2011
Messages
11,638
This is how Dlookup works:

Dlookup([FieldInTable], TableName)

Does this:

[txtVersionMajor] & " - " & [txtVersionMinor] & " - " & [txtVersionRevision]

resolve to a field in tblVersionInfo?
 

burrina

Registered User.
Local time
Today, 09:56
Joined
May 10, 2014
Messages
972
NO. It works without the added "-" part

The table is tblVersionInfo
 
Last edited:

burrina

Registered User.
Local time
Today, 09:56
Joined
May 10, 2014
Messages
972
Me.txtversion = "Ver: " & DLookup("[txtVersionMajor] & ""-"" & [txtVersionMinor] & ""-"" & [txtVersionRevision]", "tblVersionInfo")

This is what I wanted and needed. Just took a while to figure it out.
 

Users who are viewing this thread

Top Bottom