B
box2003
Greetings,
In table T1, I have fields of which five are recognized as text data type,
which hold a date value. On form F1, I have text boxes, of which five have a
input mask of short date, which save to the matching fields in T1. In
testing of my save function, information saves correctly to table T1, in the
date format from form F1. The save function works whether there is a date
value in respective F1 text box or not.
Scenario 1:
When changing the table fields related to the form F1 text boxes, from text
data type, to date/time data types, and saving the values from F1, with ALL
respective F1 text box fields filled with a formatted date, the save works
fine.
Scenario 2
When saving the same text box values from F1, with some of the date fields
blank, the save fails, producing a 3421 error, data type conversion error.
All respective tables fields are in Date/Tiime data type.
Scenario 3
Changing the respective T1 field data types back to Text, then saving the
same text box values from F1, with some of the F1 text box fields left blank
from Scenario 2, that would normally contain a formatted date value, the save
is successfull.
Finding
Even if the T1 field data type is Date/Time, and it is not required a value
be present in the box, when attempting to save a value from form F1, that
should contain a date value and is left blank, the save fails.
What is, or is there, a work around for this? I just changed the field data
type values back to text for the time being, since not all form date fields
will have a date contained in the field all of the time for each save.
In table T1, I have fields of which five are recognized as text data type,
which hold a date value. On form F1, I have text boxes, of which five have a
input mask of short date, which save to the matching fields in T1. In
testing of my save function, information saves correctly to table T1, in the
date format from form F1. The save function works whether there is a date
value in respective F1 text box or not.
Scenario 1:
When changing the table fields related to the form F1 text boxes, from text
data type, to date/time data types, and saving the values from F1, with ALL
respective F1 text box fields filled with a formatted date, the save works
fine.
Scenario 2
When saving the same text box values from F1, with some of the date fields
blank, the save fails, producing a 3421 error, data type conversion error.
All respective tables fields are in Date/Tiime data type.
Scenario 3
Changing the respective T1 field data types back to Text, then saving the
same text box values from F1, with some of the F1 text box fields left blank
from Scenario 2, that would normally contain a formatted date value, the save
is successfull.
Finding
Even if the T1 field data type is Date/Time, and it is not required a value
be present in the box, when attempting to save a value from form F1, that
should contain a date value and is left blank, the save fails.
What is, or is there, a work around for this? I just changed the field data
type values back to text for the time being, since not all form date fields
will have a date contained in the field all of the time for each save.