|
-
Jan 27th, 2000, 08:29 PM
#1
Thread Starter
Member
I am getting a data conversion error when i am moving a date from a label to a new db when the field is a date format do you guys have any ideas? thanks
-
Jan 27th, 2000, 09:08 PM
#2
Hyperactive Member
WHat is the code you're using to convert the label to the database?
-
Jan 27th, 2000, 09:50 PM
#3
Thread Starter
Member
all im doing is this
Data1.Recordset![Retirement Date] = lblRetire.Caption
and im sure there is soimething else i should do but im not sure
-
Jan 27th, 2000, 10:07 PM
#4
Hyperactive Member
You need to convert the label from a string to a date using CDate(lblLabel.caption)
You should probably use the format(lbllable.caption, "MM/DD/YYYY")
to format the label into the correct date format. So for example:
Data1.Recordset![Retirement Date] = format(cdate(lblRetire.Caption), "DD/MM/YYYY")
This would format the label's caption to a format of day/month/year.
Hope this helps.
-
Jan 28th, 2000, 01:45 AM
#5
Frenzied Member
Maybe you can try:
Data1.Recordset![Retirement Date] = "#" & lblRetire.Caption & "#"
-
Jan 28th, 2000, 01:48 AM
#6
Thread Starter
Member
both of those did work... I have one more question how do you clear out a text box? the cls doesnt work do you have any ideas?
-
Jan 28th, 2000, 01:52 AM
#7
Hyperactive Member
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
|