Ok, now this is a good one, Probably very basic, but it needs to be done.
Can I add a Iif statement to a command button to open the specific query, dependant on a value in a database field?
For example:
IIf([Contractor Details]![Contract Type]="AGENCY",/OPEN AGENCY QUERY/,IIf([Contractor Details]![Contract Type]="PAYE",/OPEN PAYE QUERY/,IIf([Contractor Details]![Contract Type]="LTD - DIRECT",/OPEN LTD QUERY/,/DO NOTHING/)))
Any advice?
I have spent the past 3 hours looking for an answer and have been unsuccesful.
Ta
Dom.
Can I add a Iif statement to a command button to open the specific query, dependant on a value in a database field?
For example:
IIf([Contractor Details]![Contract Type]="AGENCY",/OPEN AGENCY QUERY/,IIf([Contractor Details]![Contract Type]="PAYE",/OPEN PAYE QUERY/,IIf([Contractor Details]![Contract Type]="LTD - DIRECT",/OPEN LTD QUERY/,/DO NOTHING/)))
Any advice?
I have spent the past 3 hours looking for an answer and have been unsuccesful.
Ta
Dom.