Hi
Can someone help me.
I'm trying to open a form with a filter.
I'm fine opening a form using VBA code
docmd.openform("blah blah",,'ENTER FILTER HERE')
but when I try to use a variable for the filter all I get is some stupid error message)
the way that I tried originaly was to set up a string variable
say = 'TABLE ='
and then added the search criteria
to get the query as one long string.
I'm using a ReplicationID field to search for .
anyone got any idea's???
in short i'm looking for the syntax somthing like
dosmd.openform("NAMEOFTABLE",,"FIELD = " & variable
but I don't know how to pass a variable of type replicationID
(the error i get is
Malformed GUID in query expression 'staffid={BE78E0B3-B4E6-11D6-8B10-0002A5941B7F}
)

Can someone help me.
I'm trying to open a form with a filter.
I'm fine opening a form using VBA code
docmd.openform("blah blah",,'ENTER FILTER HERE')
but when I try to use a variable for the filter all I get is some stupid error message)
the way that I tried originaly was to set up a string variable
say = 'TABLE ='
and then added the search criteria
to get the query as one long string.
I'm using a ReplicationID field to search for .
anyone got any idea's???
in short i'm looking for the syntax somthing like
dosmd.openform("NAMEOFTABLE",,"FIELD = " & variable
but I don't know how to pass a variable of type replicationID
(the error i get is
Malformed GUID in query expression 'staffid={BE78E0B3-B4E6-11D6-8B10-0002A5941B7F}
)
Last edited: