Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing a Form

Status
Not open for further replies.

ssMaj

Programmer
Joined
Feb 7, 2007
Messages
6
Location
US
I have a Form with 2 tabs. One tab is View Employees and another is Add Employees. After clicking the cmdAdd button under the Add employees tab, i would like to refresh the form so that under the View employees tab shows the newly added employee. I have tryed this line of code....

DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70

That however gives me an error "action Refresh isn't available now"

Does anybody have any ideas??
Thx
 
Hey ssMaj:

Take a lok at the Form.Requery method.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top