Senin, 14 Mei 2012

[MS_AccessPros] DLookup vs Create recordset and get recordcount

 

Hi all,

On one of my forms I display a label if there is a related record in another table. Is it best to use DLookup vs create recordset and get recordcount? Here is what I currently have and I would like to know what is best:

'Display label re relationships entered if applicable
If Not IsNull(DLookup("ContactID1", "ContactsLink", "ContactID1 = " & Me.ContactID & " Or ContactID2 = " & Me.ContactID)) Then
Me.lblRelEnt.Visible = True
Else: Me.lblRelEnt.Visible = False
End If

thanks!
Connie

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar