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

Save form on exit

Status
Not open for further replies.

compaq2003

Technical User
Jan 5, 2003
7
0
0
US
hi
i create a form taking the data from tables
when i open the form and select the data from the table,
how can i save these data on closing the form, so next time i open the form i find these data on place?

thank you
 
try putting this in each controls afterupdate

controlname.defaultvalue = controlname

change controlname as needed

on closing the form it will ask to close but to avoid this for your users try this

docmd.save acform,"formname",acsaveyes "What a wonderfull world" - Louis armstrong
 
thank you for the help
I was trying to put the
docmd.save acform,"formname",acsaveyes
and i changed the formname,, error msg said that
Microsoft can;t find the macro docmd.

what shall i do?

thank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top