Results 1 to 15 of 15
  1. #1
    bdotr22 is offline Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    6

    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
    358
    it's is hard to guess without seeing what you have done so far (upload your db).

  3. #3
    bdotr22 is offline Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    6
    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
    358
    compress it to .zip and upload the zip file.
    please mention which form name you are having problem with.

  5. #5
    bdotr22 is offline Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    6
    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 offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    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 offline Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    6
    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
    358
    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 offline Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    6
    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,290
    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

  11. #11
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    358
    sorrym i have 2021 version, here is a lower version.
    Attached Files Attached Files

  12. #12
    bdotr22 is offline Novice
    Windows 11 Access 2016
    Join Date
    Jun 2025
    Posts
    6
    Quote Originally Posted by jojowhite View Post
    sorrym i have 2021 version, here is a lower version.
    Thanks, but I still can't extract it, says file is invalid.

  13. #13
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    358
    there is problem with attaching .zip to this site (i guess).
    all your .zip files (and zip from other threads), when
    i extract them it says it is corrupt.

    if you will notice the zip has suffixed fixed on it.
    since all the zip is corrupt, i used Remo Repair Zip to
    repair all zips that i download.

    you should find suitable repair tools for
    all corrupt zip.

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    I've never had issue attaching zip folder. And downloading is usually not an issue.

    Until this week. Now another thread is having same issue. https://www.accessforums.net/showthread.php?t=90973
    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.

  15. #15
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    358
    Quote Originally Posted by June7 View Post
    I've never had issue attaching zip folder. And downloading is usually not an issue.

    Until this week. Now another thread is having same issue. https://www.accessforums.net/showthread.php?t=90973
    I also use Remo to fixed the corruption.

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