469,962 Members | 2,237 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

Update mainform from subform

Hi All,

I want to update a column in my Users table through a subform.
I have made a mainform where you can choose a Department (from
Department table), then a subform pops-up showing the users in that
Department.
Now I want to make 2 buttons on this subform to pop-up new (sub)forms
to add or delete a user to/from this Department, but this DepartmentID
must be updated in the User table, how can I fix this and how do I
refresh the first subform after adding/deleting a user to/from this
Department.

Thx in advance for your help.
Nov 13 '05 #1
1 1589
The easiest way would probably be to run an update or delete query when you
click the button. Which you run will depend on whether you want to delete
the user or move them to another department. After you do this, do
Me.Requery in the button's code to force the subform to requery its record
source.

--
Wayne Morgan
MS Access MVP
"Greatmaze" <gr*******@yahoo.com> wrote in message
news:35*************************@posting.google.co m...
Hi All,

I want to update a column in my Users table through a subform.
I have made a mainform where you can choose a Department (from
Department table), then a subform pops-up showing the users in that
Department.
Now I want to make 2 buttons on this subform to pop-up new (sub)forms
to add or delete a user to/from this Department, but this DepartmentID
must be updated in the User table, how can I fix this and how do I
refresh the first subform after adding/deleting a user to/from this
Department.

Thx in advance for your help.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by P Mitchell | last post: by
6 posts views Thread by Igor | last post: by
18 posts views Thread by Robert Jacobs | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.