Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbShortDate - Updating a Record

Status
Not open for further replies.

charlie1111

Technical User
Nov 3, 2006
4
US
Hey folks!

I have a field in a table set to 'Data/Type'=Date/Time & 'Format'=ShortDate'.

On my form, I have a TextBox with the Format set to ShortDate.

Once the user changes the data, I take the data and write a query to update the record. It seems no matter what I do, the date gets written to the table in a date AND time format (usually with the year 1899..)

I've tried writing the query with
....table_vehicles.date =" + Forms!VehicleEntry.date +"

and I've tried ...table_vehicles.date =" + FormatDateTime(Forms!VehicleEntry.date, vbShortDate) +"

and I even tried setting the table field to text, and the form as ShortDate..

I know there is something simple that I'm missing :(

Anybody got some help?

Regards,
Charlie
 
You forgot your qualifiers!

Dates....."#1/1/06#"
Strings...."'Hello'"
Numbers.... 7


table_vehicles.date =#" $ Forms!VehicleEntry!date & "#"
 
Yes! Yes! Thank you. Sometimes it's hard to see the forest thru the trees....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top