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

Close form without saving data 1

Status
Not open for further replies.

ianbar

Technical User
Jan 10, 2003
69
GB
Hi,

Can anyone tell me the Vb code to close a form without saving any of the data a user my have inputted?

Thanks,

Ian.
 
Right, but if the user has moved to a different record, clicked on the record indicator, or hit the Save Record menu item, it will be too late for this. That may be OK in your situation, I'm not sure. In some it's not.

If it's not OK, you'll have to play with an unbound form and a recordset, or get into ADO and play with an unbound recordset. Check out those ideas in the help files if that's what you need.

Jeremy ==
Jeremy Wallace
AlphaBet City Dataworks
Affordable Development, Professionally Done

Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
 
my form has no record selectors, the database has no record menu (well it's hidden), so i should be ok.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top