Results 1 to 3 of 3
  1. #1
    JohnBoy is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    43

    Set a Field Value when using a make table Query


    Hi, I am pulling data fom SQL which makes a base table, when it runs I also add in 2 fields which are CreatedOn:"" and ModifiedOn:"", I then run another procedure using the newly made table to update these two fields from another table, My problem is that in the original table (lets call it base1) these two fields are set as text which really screws things up later when I try to use them,

    The Make table query gets run once a week to capture any outstanding data etc so the table is over written then, I have tried setting the values in the property fields in the query but it dont seem to work, I want to avoid opening the table after each run and manually setting the field to DateTime.

    Is there a way that I can set thsi so it does it each time I run the process.. ??

    Cheers JB

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    look up the "ALTER TABLE" query. You will run that in between your queries.

  3. #3
    JohnBoy is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    43
    Hi... totaly outstanding and so simple, I cant believe I have been messing around with this for over a week and never even thought of that.... Many Many thanx once again

    JB

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Problem With Make-Table Query
    By rwharris in forum Queries
    Replies: 1
    Last Post: 03-23-2010, 01:23 PM
  2. Make table query
    By Zahed in forum Queries
    Replies: 1
    Last Post: 11-06-2009, 05:44 AM
  3. Replies: 2
    Last Post: 10-27-2009, 07:09 AM
  4. Make a table query
    By Fiona in forum Access
    Replies: 4
    Last Post: 06-25-2009, 11:24 AM
  5. Replies: 1
    Last Post: 12-09-2005, 09:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums