J
Jim Carlock
Hello,
I'm running into a problem where I have a field
(text of size 2 in the design view)
(does not initialize to any set value)
The .mdb is saved in an access 2k format, I'm using Access XP.
I started running into some problems where the data retrieved
didn't seem correct through DAO.
I compacted the file (Tools, Database, Compact and Repair).
And the problems are still occuring.
Field name: P1
I proceeded to configure Query1 as a Select query. The fields
I'm reading are all of size 2, unindexed. In the criteria portion,
I've placed " " (a string of two spaces). That is the only criteria
I want to find.
I've also told it to show the length of the field as another field.
Length: Len([P1])
The results returned: 36 records found.
Inside the fields found, "" (an empty string).
Length: returns 0.
I'm a little puzzled right at this moment. The only fields I'm
asking it to return are the calculated field getting the length
of P1 and P1 itself if P1 = " " (two spaces). The results
are NOT what I expect.
I changed the query to an update query and for the update
field I told it change it to an empty string (""). Nothing
changed in running the select query. The update didn't
take effect.
I was thinking, Okay those fields contain Chr$(0), but
they should've updated.
I changed the criteria to Chr$(0) and changed it back to
a "Select" type of query. The same results are returned.
I changed the criteria to " " (two spaces), and the same
results are returned.
1) How do I update such fields to be represented as an
empty string instead of Chr$(0)?
2) Why is " " (the two spaces) as the criteria returning True?
Any comments and/or suggestions will be greatly
appreciated.
I'm running into a problem where I have a field
(text of size 2 in the design view)
(does not initialize to any set value)
The .mdb is saved in an access 2k format, I'm using Access XP.
I started running into some problems where the data retrieved
didn't seem correct through DAO.
I compacted the file (Tools, Database, Compact and Repair).
And the problems are still occuring.
Field name: P1
I proceeded to configure Query1 as a Select query. The fields
I'm reading are all of size 2, unindexed. In the criteria portion,
I've placed " " (a string of two spaces). That is the only criteria
I want to find.
I've also told it to show the length of the field as another field.
Length: Len([P1])
The results returned: 36 records found.
Inside the fields found, "" (an empty string).
Length: returns 0.
I'm a little puzzled right at this moment. The only fields I'm
asking it to return are the calculated field getting the length
of P1 and P1 itself if P1 = " " (two spaces). The results
are NOT what I expect.
I changed the query to an update query and for the update
field I told it change it to an empty string (""). Nothing
changed in running the select query. The update didn't
take effect.
I was thinking, Okay those fields contain Chr$(0), but
they should've updated.
I changed the criteria to Chr$(0) and changed it back to
a "Select" type of query. The same results are returned.
I changed the criteria to " " (two spaces), and the same
results are returned.
1) How do I update such fields to be represented as an
empty string instead of Chr$(0)?
2) Why is " " (the two spaces) as the criteria returning True?
Any comments and/or suggestions will be greatly
appreciated.