Results 1 to 2 of 2
  1. #1
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169

    Access Query Data Type

    I have a table that has multiple number rows and I can go in and change the datatype on each row but wanted to do it faster than selecting each one and then doing the drop down and then changing the general to double from long integer. I tried selecting all at once but it makes you do it one at a time. I am sure there is an update query I could just run to change the datatype but not sure how to construct that.

    update finalacute.rec1 ???????? I am not sure I can select all data types that are a number in one small query but would love to. I have 20 number data types and 2 text. I only want to change the number ones from long integer to double.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Update Queries only update data, not field data types.

    If you want to do that automatically, you will need to use SQL and/or VBA. Here is a link on how to do that: http://www.eraserve.com/tutorials/MS...ange_Field.asp

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

Similar Threads

  1. Data type mismatch in query
    By thart21 in forum Queries
    Replies: 8
    Last Post: 10-01-2010, 01:40 PM
  2. Replies: 1
    Last Post: 05-17-2010, 12:21 PM
  3. Data Type Conversion in Query
    By EHittner in forum Queries
    Replies: 3
    Last Post: 04-14-2010, 02:11 PM
  4. Replies: 2
    Last Post: 03-18-2010, 08:24 PM
  5. query for data type number
    By oracle in forum Queries
    Replies: 1
    Last Post: 12-14-2005, 03:35 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