After update

  • Thread starter Michael Stengel via AccessMonster.com
  • Start date
M

Michael Stengel via AccessMonster.com

I have 3 tables titled "Dept", "Event", Student",

Table Dept Fields are: DeptID (Autonumber) & Dept (text)

In Tabel Event I have the field : Dept

In Table Student I have the field: DeptID

On a form I have a Combo Box which allows the user to select a Dept and
store the value selected in th Dept field of the Event Table.

For further linking I also need to store the selected DeptID on the Student
table in DeptID field.

Was told to do this with the "afterupdate" event but have been unable to
accomplish this. ANy ideas?
 
S

Steve Schapel

Michael,

What is the nature of the relationships between these tables. It would
be unusual, in my experience, to need to use code to assigne a value
such as the DeptID in the Student table. What do you mean by "for
further linking"? On the basisi of what you have said so far, I can
only assume that you have Events, and each Event is related to one of
the Departments, so you indicate which Department the Event is related
to via the entry of the Dept in the Event table. Well, fair enough,
although it would be more usual to use the DeptID for this rather than
the Dept field. And than you have Students, and each Student is related
to one of the Departments, so you indicate which Department the Student
is related to via the entry of the Dept in the Student table. So, why
not do the same with Student as you did already with Event, i.e. use a
combobox whose Row Source is the Dept table, to enter the DeptID into
the Student table via the Student form?
 
M

Michael Stengel via AccessMonster.com

i need the deptID to autosync other popup forms to one displayed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

AfterUpdate on a form 1
Access transform x-tab SQL statement 1
combo box problem 1
UNION query 11
Form Update 1
Help on Fill Fields automatically 4
combo box problem 2
combo box problem 4

Top