![]() |
Sergey Kornilov admin 10/14/2009 |
To access value of any field on the form use values("FieldName") dim rsExists set rsExists = dal.AnyTable.Query("AnyColumn='" & values("UserNameField") & "'","") if not rsExists.eof then ' if record exists do something else ' if dont exist do something else end if rsExists.Close : set rsExists = Nothing |
T
|
text author 10/15/2009 |
To access value of any field on the form use values("FieldName") Try the following (replace field names in bold with the actual ones).
|
![]() |
Sergey Kornilov admin 10/15/2009 |
Just add one more condition to your existing WHERE clause: set rsExists = dal.AnyTable.Query("AnyColumn='" & values("UserNameField") & "' and SomeOtherField=SomeOtherValue","") |
T
|
text author 10/16/2009 |
Just add one more condition to your existing WHERE clause:
|
J
|
Jane 10/16/2009 |
Hi, set rsExists = dal.member_details.Query("Site_Alias='" & values("Site_Alias") & "' and idMembers='" & values("idMembers") & "'","") |
T
|
text author 10/16/2009 |
Hi, please check my changes below: set rsExists = dal.member_details.Query("Site_Alias='" & values("Site_Alias") & "' and idMembers='" & values("idMembers") & "'","")
|