Results 1 to 4 of 4
  1. #1
    REBBROWN is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2010
    Posts
    14

    eliminating pop up boxes asking for a value

    I have a query I have to figure out before I can move on to more complex ones.
    It works, but asks for a value before it will run.
    Here’s the data.
    One table tracking vehicles with many fields but very few used.

    I am enclosing screen shots to make more sense.
    1st field is vehicle type which first field is grouped to show the 6 available. (text)
    2nd field is also vehicle type but count to get total count of each vehicle type.
    3rd field is an expression pulled from ‘Load_Date’ which is a date field.
    It is marked as ‘not null’ and this is a field that is populated when the vehicle is loaded to be moved.
    last field is also expression by subtracting field 3 from field 2.
    The resulting number is going to be the remaining vehicles in yard (in yard awaiting to be shipped and a Load_Date populated).

    This works, until I run it.
    when I run it the first box that pops up is a box asking for a value for TOTAL_BY_TYPE which is field 2.
    I click ‘ok’ with no value.

    Then a pop-up opens and asks for TOTAL_SHIPPED which is the third field.
    Again I click ok with no value input and the query runs and performs the calculations.
    what can I do to eliminate these pop up boxes especially since you do not have to enter a value into them to have the query run?

    I will include a screen shot of the query running, a screen shot of the query editor and the SQL behind it.


    Any ideas?
    SQL:
    SELECT VEHICLE_MOVEMENT.VEHICLE_TYPE, Count(VEHICLE_MOVEMENT.VEHICLE_TYPE) AS TOTAL_BY_TYPE, Count(VEHICLE_MOVEMENT.LOAD_DATE) AS TOTAL_SHIPPED, [TOTAL_BY_TYPE]-[TOTAL_SHIPPED] AS TOTAL_IN_YARD
    FROM VEHICLE_MOVEMENT
    GROUP BY VEHICLE_MOVEMENT.VEHICLE_TYPE, [TOTAL_BY_TYPE]-[TOTAL_SHIPPED]
    HAVING (((Count(VEHICLE_MOVEMENT.LOAD_DATE)) Is Not Null));

    Query Run:
    VEHICLE_TYPETOTAL_BY_TYPETOTAL_SHIPPEDTOTAL_IN_YARDSEDAN18915039COUPE17170CONVT13130VAN660TRUCK440SUV990

    query editor window attached

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    "what can I do to eliminate these pop up boxes "

    These are caused by parameter queries. Meaning that one has criteria in the query (i.e. a value it is looking for). Look at the query in design view grid and it should be seen. Remove that - and the pop up will not occur.

    Hope this helps.

  3. #3
    slave138's Avatar
    slave138 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    WI
    Posts
    233
    Another possibility is that the query is referencing a field which does not exist in the query (a field was renamed/removed from the datasource or is misspelled in the query). The pop-up should tell you exactly which value in the query isn't matching.

  4. #4
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    705
    Anyone following this thread, for some reason it has been continued

    HERE
    Boyd Trimmell aka Hitechcoach
    Database Architect and Problem Solver
    Microsoft MVP - Access Expert
    25+ years specializing in Accounting, Inventory, and CRM systems
    "If technology doesn't work for people, then it doesn't work."

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

Similar Threads

  1. Combo boxes
    By Nixx1401 in forum Forms
    Replies: 1
    Last Post: 07-19-2010, 06:07 AM
  2. Using Combo Boxes
    By geoffwbailey in forum Programming
    Replies: 1
    Last Post: 06-21-2010, 10:08 AM
  3. Yes/No check boxes
    By Desstro in forum Forms
    Replies: 2
    Last Post: 05-03-2010, 04:26 AM
  4. Un-Check all Boxes
    By cotri in forum Forms
    Replies: 4
    Last Post: 04-30-2010, 12:53 PM
  5. List Boxes.
    By Willtc in forum Programming
    Replies: 2
    Last Post: 02-12-2010, 04:12 AM

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