M
Mark Hepburn
Hi, it must be monday morning blues but i cannot get this
sorted out.
I have the following lines of code (each is a seperate
section):
rem Client Group
stLinkCriteria = "[client group] like '*" & Me![txtSearch]
& "*'"
rem Name
stLinkCriteria = "[owner] like '*" & Me![txtOrgSearch]
& "*'" & " OR " & "[name] like '*" & Me![txtOrgSearch]
& "*'"
rem Address
stLinkCriteria = "[address1] like '*" & Me![txtAddress]
& "*'" & " OR " & "[address2] like '*" & Me![txtAddress]
& "*'" & " OR " & "[town] like '*" & Me![txtAddress]
& "*'" & " OR " & "[region] like '*" & Me![txtAddress]
& "*'"
rem Respite
stLinkCriteria = "[respite]=" & Me![chkRespiteService]
Each of the 4 are run seperately when an independant
button is clicked. They sort out the criteria for what
records get shown when a form is opened. I would like to
have all 4 sections run in the way:
stLinkCriteria= section1 AND section2 AND section3 AND
section4
so that the criteria can be set and one button activates
it .... i cannot seem to get this right.
I hope this makes sense to someone. I'd appreciate any
direction.
Mark.
sorted out.
I have the following lines of code (each is a seperate
section):
rem Client Group
stLinkCriteria = "[client group] like '*" & Me![txtSearch]
& "*'"
rem Name
stLinkCriteria = "[owner] like '*" & Me![txtOrgSearch]
& "*'" & " OR " & "[name] like '*" & Me![txtOrgSearch]
& "*'"
rem Address
stLinkCriteria = "[address1] like '*" & Me![txtAddress]
& "*'" & " OR " & "[address2] like '*" & Me![txtAddress]
& "*'" & " OR " & "[town] like '*" & Me![txtAddress]
& "*'" & " OR " & "[region] like '*" & Me![txtAddress]
& "*'"
rem Respite
stLinkCriteria = "[respite]=" & Me![chkRespiteService]
Each of the 4 are run seperately when an independant
button is clicked. They sort out the criteria for what
records get shown when a form is opened. I would like to
have all 4 sections run in the way:
stLinkCriteria= section1 AND section2 AND section3 AND
section4
so that the criteria can be set and one button activates
it .... i cannot seem to get this right.
I hope this makes sense to someone. I'd appreciate any
direction.
Mark.