stLinkCriteria stupidity

Geoff Codd

Registered User.
Local time
Today, 02:15
Joined
Mar 6, 2002
Messages
190
Hi there,

I am being a complete dumbass, I have a form which I would like to open using the following criteria

SAP_entity = Me![SAP_entity] - Number
Type = "Revenue" - Text Field
source = "ZZZ" - Text Field

One day I'll manage to get my head around this syntax problems

Thanks in advance
Geoff
 
Code:
stLinkCriteria = "[SAP_entity] = " & Me.[SAP_entity] & " AND [Type] = ""Revenue"" AND [Source] = ""ZZZ"""
 
Thank you, I forgot to put double quotes around the text values

Thanks
Geoff
 

Users who are viewing this thread

Back
Top Bottom