By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,656 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,656 IT Pros & Developers. It's quick & easy.

Update mainform from subform

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.