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!

Prevent saving of data in Datagrid/ADO connected to Access

Status
Not open for further replies.

Knutjo

Programmer
Jan 15, 2002
31
0
0
NO
I have a form with a datagrid where I am registering a new record. When I am saving the new record I want to validate the fields and prevent the user from saving if anything is wrong.

Is it possible to do this by setting some properties in the "BeforeUpdate"-event for the DataGrid ?

I have tried to set "adStatus" = "adStatusCancel" in the ADODC-connection object's event "WillChangeRecord", but I only get error messages ?

Does anyone have the solution ?

Regards
Knut
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top