If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Update query
I have a database that someone else created and that I can't change table
properties in due to it's permissions. There is a Date of Birth (DOB) field in it that is in text format but entries look like they are in the short date format dd/mm/yyyy. I can't run parameter queries like between[start date]and[end date] against it because the DOB field is in text format. I've created a make table query that selects the data that I need with the DOB field and save it to another table that I can change properties in. Does anyone know how to write an update query that I could put in a macro and that would change the text format of the DOB field in the make table to a short date format? Thanks, Stuart |
#2
|
|||
|
|||
Update query
First backup the table.
If the dates are valid you can just change the datatype in table design view and save. If some records are not changed you might be able to review the data in the backup table to figure out what the date is. "SC" wrote: I have a database that someone else created and that I can't change table properties in due to it's permissions. There is a Date of Birth (DOB) field in it that is in text format but entries look like they are in the short date format dd/mm/yyyy. I can't run parameter queries like between[start date]and[end date] against it because the DOB field is in text format. I've created a make table query that selects the data that I need with the DOB field and save it to another table that I can change properties in. Does anyone know how to write an update query that I could put in a macro and that would change the text format of the DOB field in the make table to a short date format? Thanks, Stuart |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cross tab query construction with Subqueries | Steven Cheng | Running & Setting Up Queries | 7 | February 13th, 2006 06:52 PM |
Update query giving blank results - Access 2003 | Ann Scharpf | Running & Setting Up Queries | 2 | September 3rd, 2005 10:21 AM |
Access Update Query Not Working From ADO | Barry-Jon | Running & Setting Up Queries | 3 | March 18th, 2005 08:42 PM |
Update query to resequence | MSROOKIE | Running & Setting Up Queries | 2 | March 7th, 2005 01:11 PM |
Using an append query with an update query | Joshua Schairbaum | Running & Setting Up Queries | 1 | July 15th, 2004 02:22 AM |