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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Type Change

Status
Not open for further replies.

brahmabull525

Programmer
Jul 19, 2004
33
US

I am building a Make Table query in Access. I am using the following as criteria "Between [enter start date] and [enter end date]" on a date field. When the table is made, two new fields are created called "StartDate" and "EndDate". These come from columns set-up in the query as "StartDate:[enter start date]" and "EndDate:[enter end date]".

When the "StartDate" and "EndDate" fields are created in the new table, the data shows up, by the Data Type is set to Binary. Is there a way to have the query automatically set the Data Type as Date/Time instead?

Any help would be most appreciated. Thanks!
 
In the SQL view of the query you may add this instruction (as first line):
PARAMETERS [enter start date] DateTime, [enter end date] DateTime;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PH, you're a life saver. That's exactly what I needed.

Thanks!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top