![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In an import routine I have to deal with a table which holds, amongst others, a text field in which most records have date values, except for certain records where the field value is 'Unknown'. Before importing this table into the master table, I'd like to change all possible text values in this field to a dummy value '01-01-1900', so that the import routine doesn't skip these records as the particular field there is of type 'Date'. Can this be done with an update query? What criteria would pick out the records with text values in the particular field? Thanks in advance, Martin |
#3
| |||
| |||
|
|
In an import routine I have to deal with a table which holds, amongst others, a text field in which most records have date values, except for certain records where the field value is 'Unknown'. Before importing this table into the master table, I'd like to change all possible text values in this field to a dummy value '01-01-1900', so that the import routine doesn't skip these records as the particular field there is of type 'Date'. Can this be done with an update query? What criteria would pick out the records with text values in the particular field? Thanks in advance, Martin |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Martin, IIf(IsDate(InDate), InDate, #01-01-60#) Note: I prefer #01-01-60#, since #01-01-00# could be interpreted as 01-01-2000. |
![]() |
| Thread Tools | |
| Display Modes | |
| |