I have VBA code that will generate a list of tables and fields in my database. The place I work has a ton of legacy databases many are slated to be upsized to SQL back-ends in the future.
I need to generate a report of records that have DATES that will fail when upsizing to SQL so that the data can be corrected prior to upsizing.
I have a table called "tblobjects2" that contains all the table names, field names, and field types from the database. I Need to create either a table or report that shows all the records that contain records where the date will fail - < 01/01/1900 or >= 01/01/2076. I will need at least the primary key to locate the records, but all fields outputted would be fine too. My table does contain a field called idxprimary that when = true is part or all of the primary key.
Within tblobjects2 the fields are tblname, fldname, and fldtype (8 = date). I need to be able to create looping SQL expressions that loops through tblobjects2 for the table and field names where the date is out of range for SQL upsizing. If it makes it easier I can pre-generate just a table that contains only table names and field names that have the Date type. Some tables may have multiple DATE fields.
Any suggestions would be appreciated.
I need to generate a report of records that have DATES that will fail when upsizing to SQL so that the data can be corrected prior to upsizing.
I have a table called "tblobjects2" that contains all the table names, field names, and field types from the database. I Need to create either a table or report that shows all the records that contain records where the date will fail - < 01/01/1900 or >= 01/01/2076. I will need at least the primary key to locate the records, but all fields outputted would be fine too. My table does contain a field called idxprimary that when = true is part or all of the primary key.
Within tblobjects2 the fields are tblname, fldname, and fldtype (8 = date). I need to be able to create looping SQL expressions that loops through tblobjects2 for the table and field names where the date is out of range for SQL upsizing. If it makes it easier I can pre-generate just a table that contains only table names and field names that have the Date type. Some tables may have multiple DATE fields.
Any suggestions would be appreciated.