what is the correct syntax for this filter??

Davros

Registered User.
Local time
Today, 16:57
Joined
Sep 9, 2005
Messages
131
Hi
I've been concentrating on GIS for the past 18 months so my database skills, simple as they are, have lapsed. i am trying to do a filter search. one box is number [ccc_ref_number] the other box is text [extra_ref]. it's simple really - i want to double click the record in the open form and i want it to take me to the corrosponding record in the form "frm_estates". the seperate components of the filter criteria below works by themselves but when i combine then they do not. i'm pretty sure it's something to do with the quotation marks but god knows if i can find it. anyone have any ideas what the problem is??


DoCmd.OpenForm "frm_estates", acNormal, , "[ccc_ref_number]=" & Me.CCC_Ref_Number & "[extra_ref]='" & Me.extra_ref & "'"

thanks in advance
 
DoCmd.OpenForm "frm_estates", acNormal, , "[ccc_ref_number]=" & Me.CCC_Ref_Number & " AND [extra_ref]='" & Me.extra_ref & "'"
 
you still here Boblarson imparting your wisdom? what a hero! just what i wanted. i don't think i'll ever get those bloody quotes right!
thank you very much
 
Yes, I'm still here. Went away for a while but couldn't stay away. :D Glad I could help. :)
 

Users who are viewing this thread

Back
Top Bottom