G
Guest
I am in need of some serious assistance!! I cannot figure out how to
indicate the date in VB. What I am trying to do is search based on a date.
The user inputs a date on a form and I'm trying to search for that date by
using VB code. It is searching an unbound text box (set for medium date).
The code does not return any error, it just indicates that there is no match.
I know it is because of the VB date issue. Here is a part of the code that
looks up the date:
ElseIf IsNull([Surname]) And IsNull([GivenName]) And (Not
IsNull([DateOfBirth]) Then
DoCmd.RunSQL "insert into tblTemNameSearch select tblContactInformation.*
from tblContactInformation where " _
& "dtDateOfBirth = " & [DateOfBirth]
I have absolutely no idea on how I can indicate the date etc....Begging for
help lol
Regards
indicate the date in VB. What I am trying to do is search based on a date.
The user inputs a date on a form and I'm trying to search for that date by
using VB code. It is searching an unbound text box (set for medium date).
The code does not return any error, it just indicates that there is no match.
I know it is because of the VB date issue. Here is a part of the code that
looks up the date:
ElseIf IsNull([Surname]) And IsNull([GivenName]) And (Not
IsNull([DateOfBirth]) Then
DoCmd.RunSQL "insert into tblTemNameSearch select tblContactInformation.*
from tblContactInformation where " _
& "dtDateOfBirth = " & [DateOfBirth]
I have absolutely no idea on how I can indicate the date etc....Begging for
help lol
Regards