jfgambit
Kinetic Card Dealer
- Local time
- Today, 00:13
- Joined
- Jul 18, 2002
- Messages
- 798
Afternoon Folks...
I have an export that comes out of Siebel that we import into an Access 2000 Db. I import the csv file into a temp table to do some separation into two tables (this Normalizes the information in the database). The problem that I have is that when there is a NULL value in a field in Siebel the export has the word "NULL" in the field. There are approximately 20 fields and any one of these could have the word "NULL" in them.
Does anyone have code that will loop through each field in the table and replace the text word "NULL" with an actual Null value?
I could do it with Docmd.RUNSQL "blah, blah, blah...", but it seems kind of ridiculous to write 20 Docmd statements and if we add additional fields to the extract then I have to add more DoCmd lines to the code.
I have an export that comes out of Siebel that we import into an Access 2000 Db. I import the csv file into a temp table to do some separation into two tables (this Normalizes the information in the database). The problem that I have is that when there is a NULL value in a field in Siebel the export has the word "NULL" in the field. There are approximately 20 fields and any one of these could have the word "NULL" in them.
Does anyone have code that will loop through each field in the table and replace the text word "NULL" with an actual Null value?
I could do it with Docmd.RUNSQL "blah, blah, blah...", but it seems kind of ridiculous to write 20 Docmd statements and if we add additional fields to the extract then I have to add more DoCmd lines to the code.