A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Update query



 
 
Thread Tools Display Modes
  #1  
Old February 16th, 2006, 07:42 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default 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  
Old February 16th, 2006, 09:01 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 07:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.