Solved Open form with multiple where conditions (Text Fields)

Snowflake68

Registered User.
Local time
Today, 13:59
Joined
May 28, 2014
Messages
452
I want to open a form to a specific record with two where conditions. I have it working with one but just cannot get the syntax correct to join the two together. I have tried using AND but just cant get the quotes in the correct place.

These are the two conditions I would like to join together please (THEY ARE BOTH TEXT FIELDS)

="[QuoteReference]=" & "'" & [QuoteRef] & "'"

AND

"[AccountReference]=" & "'" & [AccountRef] & "'"
 

June7

AWF VIP
Local time
Today, 04:59
Joined
Mar 9, 2014
Messages
5,472
AND must be within quotes. Where are you using this that you need = sign?

Code:
="[QuoteReference]='" & [QuoteRef] & "' AND [AccountReference]='" & [AccountRef] & "'"
 

Snowflake68

Registered User.
Local time
Today, 13:59
Joined
May 28, 2014
Messages
452
AND must be within quotes. Where are you using this that you need = sign?

Code:
="[QuoteReference]='" & [QuoteRef] & "' AND [AccountReference]='" & [AccountRef] & "'"
Thank you so much, this works perfectly
 

Users who are viewing this thread

Top Bottom