Results 1 to 6 of 6
  1. #1
    Colmans is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    7

    Auto Populate my Form?!

    Hello everyone,

    I am attempting to build a database for a business but I have stumbled across a problem. The user of the database will submit the customer's order via a form which will then obviously appear in the table. I have got all of that set up and I am happy with it.

    However, on the form there are three fields which are causing a problem; ItemID, Order and Price. I watched a video on YouTube which I found very useful and beneficial for a database (https://www.youtube.com/watch?v=rSPS24EfijI) and I had previously used this video to build a friend's database this way, and it worked for them but it doesn't for me.



    All in all, when the user selects an ItemID from the drop down box on the form, I want the Order and Price text boxes to populate automatically as they will all link. I know it works because as I said I done it for a friend, but for some reason it isn't for me.

    I will attach my database down below.

    Orders1.accdb

    Many thanks and I appreciate all answers,
    Colmans

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    It works fine as is. Exactly like what you described that you wanted.
    As an aside, your 'TotalBill' field in your table is long integer, so it will not show any decimal places.

  3. #3
    Colmans is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    7
    Quote Originally Posted by davegri View Post
    It works fine as is. Exactly like what you described that you wanted.
    As an aside, your 'TotalBill' field in your table is long integer, so it will not show any decimal places.
    It works?! Well why doesn't it appear for me? I've attached an image of what it looks like on my screen. Can you do the same with your screen please??

    Click image for larger version. 

Name:	2016-11-25.jpg 
Views:	12 
Size:	96.5 KB 
ID:	26548

    Those fields should have information in them!

    And thank you regarding the "TotalBill" field!

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    Attachment 26549

    Don't know what to say. Works fine for me.

  5. #5
    Colmans is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    7
    Quote Originally Posted by davegri View Post
    Attachment 26549

    Don't know what to say. Works fine for me.
    And are you using Access 2016??

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by Colmans View Post
    And are you using Access 2016??
    That's what it states by his user name, and, like you, he's also running Windows 10!

    Does any code work for you? If not, you probably need to declare the Folder the file resides in as Trusted...which might explain why it works for your other db but not this one.

    Linq ;0)>

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

Similar Threads

  1. How to auto populate a form
    By e51lrrp in forum Forms
    Replies: 42
    Last Post: 03-20-2014, 11:40 PM
  2. Sub Form auto populate
    By keiath in forum Forms
    Replies: 4
    Last Post: 02-14-2014, 02:59 PM
  3. How to auto populate in tex box form
    By kft10 in forum Forms
    Replies: 3
    Last Post: 06-12-2013, 11:47 PM
  4. Auto Populate form
    By fpsmi in forum Access
    Replies: 1
    Last Post: 09-16-2011, 09:24 AM
  5. Auto-populate form question: again!
    By revnice in forum Access
    Replies: 5
    Last Post: 08-06-2010, 04:02 PM

Tags for this Thread

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