Carl Provost
September 11th, 1999, 08:54 AM
Hi,
I am having problems using the MaskEdBox.
I'm using VB 6.0 and MSMASK32.OCX. with an
ADO data control connected to a SQL Server 7 database, running on WinNT 4.0 workstation.
The computer's "Regional Settings" for the date are MM/dd/yyyy.
The MaskEdBox (mskBirthday) is bound to a field
"Birthday" (datatype=datetime, length=8).
The mask is: ##/##/##
The DataFormat Property is: Date - Format$ MM/dd/yy
Two problems are actually occuring:
1. Editing - after making a change to a date and trying to invoke the recordset.update method, I get the error: "The change was cancelled during notification; no columns are changed". I am unable to edit a date.
?? is that a SQL Server error ??
2. Adding a new record (AddNew method) - and then trying to invoke the recordset.update method, the error message is simply: "Errors Occured", and the record does not get added to the table. I know the problem is caused by the MaskedEdBox control, because if I use a regular textbox everything works fine.
I am new to this MaskEdBox... so any help will be greatly appreciated.
I am having problems using the MaskEdBox.
I'm using VB 6.0 and MSMASK32.OCX. with an
ADO data control connected to a SQL Server 7 database, running on WinNT 4.0 workstation.
The computer's "Regional Settings" for the date are MM/dd/yyyy.
The MaskEdBox (mskBirthday) is bound to a field
"Birthday" (datatype=datetime, length=8).
The mask is: ##/##/##
The DataFormat Property is: Date - Format$ MM/dd/yy
Two problems are actually occuring:
1. Editing - after making a change to a date and trying to invoke the recordset.update method, I get the error: "The change was cancelled during notification; no columns are changed". I am unable to edit a date.
?? is that a SQL Server error ??
2. Adding a new record (AddNew method) - and then trying to invoke the recordset.update method, the error message is simply: "Errors Occured", and the record does not get added to the table. I know the problem is caused by the MaskedEdBox control, because if I use a regular textbox everything works fine.
I am new to this MaskEdBox... so any help will be greatly appreciated.