
Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
>I have a form that has a data source of qry_login.
>
[quoted text clipped - 9 lines]
>
> Kelvin
Thanks that works great!
Now I'd like to make the displaying of this information conditional.
Neither of these work:
=iif(Right("SQLServerDB","qry_SQLConnect", 4)="test",
DLookUp("SQLServerDB","qry_SQLConnect"), "")
=iif(Right([SQLServerDB].[qry_SQLConnect], 4)="test",
(DLookUp("SQLServerDB","qry_SQLConnect")), "")
Where am I going wrong with this?
Thanks
Kelvin
> Use the DLookup function:
>
[quoted text clipped - 14 lines]
>>
>> Kelvin
Douglas J. Steele - 26 Mar 2007 17:06 GMT
=IIf(Right(DLookUp("SQLServerDB","qry_SQLConnect"), 4) = "test",
DLookUp("SQLServerDB","qry_SQLConnect"), "")

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Thanks that works great!
>
[quoted text clipped - 29 lines]
>>>
>>> Kelvin