Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114

    Hi Eric,
    Could you please upload a small sample with just the two forms and empty tables?
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  2. #17
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Hi Vlad,

    See attached. It's the Adjustments form. Thanks for your help,

    Eric
    Attached Files Attached Files

  3. #18
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Hi Eric,

    I have removed the filter on the form, added a dummy record and it seems to be working for me. Could you please have a look?

    Cheers,
    Attached Files Attached Files
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #19
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Hi Vlad,

    Thanks for your quick response. I do see that it is populating but if you click add a new adjustment and click one record you created, the busunit is not updating, at least when I am running. What was the filter on the form you mentioned?

    Thanks,

    Eric

  5. #20
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Hi Eric, please see the latest. You need to specify how and when you get the solution "not working" . The filter was saved with the form and was set to load on open, have a look at the file you updated and you'll see it.

    I would strongly recommend you get rid of all the loookup fields in your tables, they will be causing you hours of grief....see detailed info here:http://access.mvps.org/access/lookupfields.htm

    Cheers,
    Vlad
    Attached Files Attached Files
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  6. #21
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Thank you Vlad. Sorry for not being more specific last night... but I'm glad to see you figured it out. So I removed the form filter, copied your code exactly from your Vlad2 database and the business unit field is not updating when I open the adjustments form or when I click on create new adjustment and select a CCA. I will try to review all the code and settings side by side to see if I can find what the difference may be. It's really a head scratcher. Also, thanks for the info on the look ups. I had no idea they were so disruptive to queries. I will remove them from my main database. I'll let you know what I find with the business unit field.

    Thanks again,

    Eric

  7. #22
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Hi Eric,
    Please have a look at this update, I think this is the easiest to implement, basically remove all previous code and put this expression in the control source for the business unit textbox on the main form:
    =DLookUp("[BusinessUnit]","[t_CCA]","[CCA#]='" & [CCA#] & "'")

    Cheers,
    Vlad
    Attached Files Attached Files
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  8. #23
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Hi Vlad.... Perfect!

    Thanks again for sticking with me so long. I hope you find my future posts.

    Take care,

    Eric

  9. #24
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Glad to hear you got it working!
    With your forum handle ... probably

    Cheers,
    Vlad
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 07-15-2019, 10:20 AM
  2. allow blank record in subform
    By smg in forum Forms
    Replies: 3
    Last Post: 05-17-2019, 11:50 AM
  3. Replies: 5
    Last Post: 05-15-2015, 10:49 AM
  4. Subform printing out blank?
    By tonygg in forum Access
    Replies: 6
    Last Post: 04-27-2015, 03:09 AM
  5. load blank subform
    By slimjen in forum Forms
    Replies: 18
    Last Post: 07-02-2014, 09:51 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