D
deb
Access 2003
On the form called fClosure ApprovalPopUp I have a combobox called
SignaturePM.
The default value for SignaturePM is currently
=DLookUp("[ContactPMID]","[t040Project]","[ProjectID] =" &
[Forms]![fClosure]![ProjectID])
How do I edit the above DLookUP to this...
=if LoginUser = PMUser then
DLookUp("[ContactPMID]","[t040Project]","[ProjectID] =" &
[Forms]![fClosure]![ProjectID])
if LoginUser = ManagerUser then
DLookUp("[ContactPMgrID]","[t040Project]","[ProjectID] =" &
[Forms]![fClosure]![ProjectID])
End if
End if
I get invalid syntax error if I use this in the Default Value area.
Thank you,
On the form called fClosure ApprovalPopUp I have a combobox called
SignaturePM.
The default value for SignaturePM is currently
=DLookUp("[ContactPMID]","[t040Project]","[ProjectID] =" &
[Forms]![fClosure]![ProjectID])
How do I edit the above DLookUP to this...
=if LoginUser = PMUser then
DLookUp("[ContactPMID]","[t040Project]","[ProjectID] =" &
[Forms]![fClosure]![ProjectID])
if LoginUser = ManagerUser then
DLookUp("[ContactPMgrID]","[t040Project]","[ProjectID] =" &
[Forms]![fClosure]![ProjectID])
End if
End if
I get invalid syntax error if I use this in the Default Value area.
Thank you,