Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Access 2007 Tutorial 5.4. Inserting into multiple fields using a Combo box and NotInList Event

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
8,048
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Jul 26, 2011

You can work along with this file:
http://www.djdates.com/database-with-forms.accdb

Code can be found here:
http://www.djdates.com/2011/07/26/

In this video:

On Not In List event
Variables & Constants
msgbox()
if-else statement
Arrays
Split()
DoCMD.RunSQL
UBound()
Remaining Issues

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (djdates)

  • Can you do a video on multiple instances of tables in the relationship window. I know that we can make a relationship to the same field multiple times to one table by creating another instance of the table. My question is, do we have to reconnect all the relationship connections of the instance too?

  • @giorgio89789 Are you talking a table that exists only once in the database, but multiple times in relationship design? If I drag over a table again into relationship design, and use that instead, when I do a relationship report, use query design, or leave and come back into relationship design view, it's as if I created the relation on the original. I can also create multiple relations to single field without duplicating a table in that view, so I am a little confused as to what the issue is.

  • Great video, my issue is this doesn't work when you past in multiple records at a time in a form. Is there a way to 'captur' the not in table error and perform an action based on that? I also have to capture an error based on an index error as well. I figured the first would lead me to the second.

  • @dhyskRacer Remember, a form is a front-end for the table, not the table itself. Notice how we tell the form to update the list based on the new data in the table (acDataErrAdded)? Three things to try: 1.) find a form event that will fire before the insert/update (use msgbox's and experiment.) 2.) Use Access 2010 data macros, which add event-like functionality at the table level. 3.) Reexamine how data is added to the database. Use a staging table or external data connection with some SQL.

  • Thank you so much for answering my question. Honestly, I didn't think you were going to see my question. This really helped me.

  • @giorgio89789 Great! Keep in mind, there is always more than one way to do this kind of thing. A variation on this has Access opening a new form for the user, populating one field from the combobox, but allowing the user to fill out the rest of the fields in the form. For examples, google: docmd openform newdata

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Good !

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more