Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2014
    Posts
    3

    VBA in form view overriding imported table data

    Hi everyone,



    I'm new to creating DBs, and I just used an append query to add data into the proper table in Access (which worked fine). My problem is when I pick any of the data entries and open them in form view, my VBA from graying out certain fields with AfterUpdate events are causing some comboboxes and checkboxes to not be selected even though they originally were in the table data. When I go back to the table, my data is then updated without the checkboxes and certain fields because the form view changes caused updates.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Bound controls are capable of updating data ion the table(s).

  3. #3
    Join Date
    Jul 2014
    Posts
    3
    Yes, I know that anything that updates in form view will update in table view. But how would I go about correcting the code or way that I'm approaching this. For instance all the entries that I've appended have "Suspend" checked as well as a DateEffective. But because my VBA is programmed such that DateEffective is grayed out and disabled until Suspend is checked in the form itself, when I open the table entry in form view, Suspend is unchecked and DateEffective is blank, even though both fields originally existed in table view.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    When I run UPDATE queries or update records via DAO I usually use the values from the form and update other tables with said values. So there is not the conflict you are describing.

    Perhaps, before you run your UPDATE, you can change the values of the relevant controls.

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

Similar Threads

  1. Graph on Form - Overriding data
    By Gabriel2012 in forum Forms
    Replies: 6
    Last Post: 02-19-2013, 10:18 AM
  2. Replies: 2
    Last Post: 02-23-2012, 09:03 PM
  3. Imported data in table not shown in Forms
    By Zildjyn in forum Import/Export Data
    Replies: 9
    Last Post: 12-30-2011, 01:34 PM
  4. View data in table on Form as Diary?
    By beha in forum Forms
    Replies: 2
    Last Post: 10-26-2011, 11:36 AM
  5. Linking Access Table with already imported External Data (Excel)
    By izzarshah in forum Import/Export Data
    Replies: 1
    Last Post: 07-29-2010, 09:40 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