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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

After Pushing Dup Rec button , need to requery some how to see new Rec

Status
Not open for further replies.

aunixguru

IS-IT--Management
Feb 2, 2001
28
US
(Access 2k)

I have a button on a subform that dupes the current record to a new customer by use of a append query.

I cannot figure out how to requery or refresh in code to have the record show up.

The subform is linked to the main form. If I exit the screen and come back in the record will be there.

Any ideas on how to force the refresh so that I don't have to close the screen?

Main form = Main Menu
Subform = Quotes.

Thanks.

 
Hi!

You may requery all objects what datasource or rowsource contain fields of updated tables.

private sub cmdUpdateButton_Click()
........
........
Codes for update table

me.requery
forms("Main Menu").requery

end sub

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top