Results 1 to 10 of 10
  1. #1
    bdotr22 is online now Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    5

    Form to Query - Data Type

    Hi,

    I have a form linked to a query where I type in a number and a date and then I want the query to use them.

    I have designed a query that takes the data in fine, when it is all set as general.

    When I set the field on the form to number then the query shows the related field as blank (changing the query field to number also doesn't seem to change anything), same thing with the date field.

    I am sure it is something basic but I haven't really uses access for a decade and I am a bit lost! Any help would be great.

    Thanks

  2. #2
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    346
    it's is hard to guess without seeing what you have done so far (upload your db).

  3. #3
    bdotr22 is online now Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    5
    Quote Originally Posted by jojowhite View Post
    it's is hard to guess without seeing what you have done so far (upload your db).
    When I try to attach it says file size is too large, is there something else I can do to upload?

  4. #4
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    346
    compress it to .zip and upload the zip file.
    please mention which form name you are having problem with.

  5. #5
    bdotr22 is online now Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    5
    Production Manager.zip

    I shoud have thouyght of that...thanks!

    I am looking at frmRPCreate which ties into qryItemList.

    In this state it works. If I try to set the quantity field on the form to Number, or set the Due Date field to Date is where the issues arrise.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    I get an "invalid file" error trying to open your zip folder. Did you use Windows Compression?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    bdotr22 is online now Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    5
    Production Manager v2.zip

    Yes, just Send To - Compressed File. When I download the previous attachment it become invalid also so trying again

    EDIT : Same issue with these. Will try something else!

    I think this works! Production Manager v3.zipProduction Manager v4.zip

  8. #8
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    346
    see the changes i made on the form in design view.
    also see the code (change event) on the Date textbox and Qty textbox.
    Attached Files Attached Files

  9. #9
    bdotr22 is online now Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    5
    Quote Originally Posted by jojowhite View Post
    see the changes i made on the form in design view.
    also see the code (change event) on the Date textbox and Qty textbox.
    I am now getting the invalid file error with this one!

  10. #10
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,285
    Quote Originally Posted by bdotr22 View Post
    I am now getting the invalid file error with this one!
    Me too. Added more characters to get past the stupid character count limit.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 0
    Last Post: 09-05-2017, 10:35 AM
  2. Replies: 4
    Last Post: 02-03-2017, 12:12 PM
  3. Replies: 14
    Last Post: 05-08-2014, 12:51 PM
  4. Replies: 3
    Last Post: 05-31-2013, 04:32 PM
  5. Replies: 2
    Last Post: 03-18-2010, 08:24 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