|
-
Jan 24th, 2005, 01:47 PM
#1
Thread Starter
Junior Member
Date Type with VB and Access[Resolved]
I want to take an inputted date from a text box, convert it to a date datatype then send it to my access database.
The data type of the Access field was text and then date, both of which didnt record the correct figures.
My program is sending the data to the db but it is captured incorrectly. i.e. Its being stored as an abstract time (00:00:43) or code(4.99001996007984E-04).
Heres my code:
Dim dtRentalDate as Date
If txtRentalDate.Text = "" Then
dtRentalDate = Now()
Else: dtRentalDate = txtRentalDate.Text
End If
Please help
Last edited by trackdaychamp; Jan 24th, 2005 at 05:03 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|