Hi all, hope this is the correct forum...
I am importing a .txt file into a generic table called episodes, using the Docmd.TransferText acImportDelim etc routine with no field names. On doing so, I know that the ensuing table will be short text for every field.. That's fine as far as I am concerned, because I can convert whatever fields I want at a later stage to the correct formats, as necessary.
Before I do that conversion though, I want to search through a particular field ([F8]), and see if it contains non-numeric characters. What I know is that either the number 19 or the value <Null> will come into the table in field [F8] on import. I know that because that is what the source system exports for good and bad values.
So what I am looking for is a better solution to what I thought would work which was this, but is obviously flawed
I tried a second option, also in the code below, but that didn't work either
Code:
If DCount(Len("F8"), "Episodes", ">2") Then Me.DirtyEP = 1
If DCount("F8", "Episodes", "<>19") Then Me.DirtyEP = 1
My choices of code always return Me.DirtyEP = 1, and all the current records in [F8] show the value 19! So can someone suggest some corrective code to replace mine?
What I thought was a simple <does not equal (numeric) 19> is getting complicated lol!
thanks in anticipation
Pete