problem in a the Where Argument. In a macro

User avatar
sistemaPR
2StarLounger
Posts: 119
Joined: 01 Jul 2013, 14:08

problem in a the Where Argument. In a macro

Post by sistemaPR »

Hi HansV

This is bottom on a form -> to open a form: I put both the conditions together with a.. And

This is not working, can you tell me what is wrong, I want unite, but like that does not work, I have this on a macro -> on a openform, in the where, I want it to open the form base on the member with the same provider. If I try by member: it works by member only but it bring other providers, viceversa ( by Providers its the same ). I also try in the other form example ' Forms![Formname]![field] and did not work either, maybe something was missing. I know it can be done ..

="[MemberID]=" & "'" & [txtMemberID] & "'" And "[ProviderNPI]=" & "'" & [txtProviderNPI] & "'"

User avatar
HansV
Administrator
Posts: 78484
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: problem in a the Where Argument. In a macro

Post by HansV »

The And should be within the quotes:

="[MemberID]='" & [txtMemberID] & "' And [ProviderNPI]='" & [txtProviderNPI] & "'"

PS Please don't direct questions to me personally - there are others who answer questions too! :smile:
Best wishes,
Hans

User avatar
sistemaPR
2StarLounger
Posts: 119
Joined: 01 Jul 2013, 14:08

Re: problem in a the Where Argument. In a macro

Post by sistemaPR »

ok