Make Table query on ODBC table changes NULLs to empty strings in Access 2002

From: Les Mercer (lmercer_at_pavilionhg.co.uk)
Date: 06/29/04


Date: Tue, 29 Jun 2004 10:01:12 +0100

This is a change of behaviour between Access 2000 SP3 and Access 2002 SP3.

I have Progress table that is linked via ODBC into Access using OpenLink
Lite for Progress 9.0b. For over a year, using Access 2000 under Win98, I
have been running a Make Table or Append query against this ODBC table and
producing an extracted Access table. Any fields that are NULL on the source
ODBC table show as NULL on the output table. The query also has an
expression which tests a field for NULL. This also works

Running the same Make Table or Append query in Access 2002 SP3 under WinXP
Professional SP1, the expression does not find the NULL fields and the
output fields that should be passed across as NULL are set to zero length
strings.

If I change the query from a Make Table to a Select Query, the expression
correctly recognises the NULLs and the fields are reported as NULLs.

The problem does not occur if the source is an Access table, it seems to
only be when it is a linked ODBC one.

Has anyone else experienced this, and is there any alternative other than
checking and changing every query?

Les Mercer.



Relevant Pages

  • Re: MS Access looks for .mdb rather than Progress schema
    ... # Same query previously worked in Progress 8.x using SQL89. ... This entry allows you to keep your existing code written with the ODBC ... BTW, if you put all of the connect information into the connect string, ... I also tried putting the whole thing in the connection string: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Word 2000/2002 - Proper Mail Merge steps for ODBC?
    ... > I don't get the "Database has been placed in a state by ... Access runs the query and will prompt for any ... > my ODBC entry and click the "Configure" button, ... >>using OLEDB, it uses a more exclusive mode than it really ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Word 2000/2002 - Proper Mail Merge steps for ODBC?
    ... I was able to find the MS Query button and locate my ... in both is ODBC. ... >> be certain that I am using the OLEDB method? ... >from the list of possible connection options. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: MS Access looks for .mdb rather than Progress schema
    ... This is not passthrough query sql. ... and should be translated into ODBC SQL. ... BTW, if you put all of the connect information into the connect string, ... I also tried putting the whole thing in the connection string: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Simple query executes fast but renders slow...
    ... After you restart Access and run your query, JET will write an extensive log ... "SQL Queries for Mere Mortals" ... >>Then I wrote queries and reports based on the local ... So, ODBC, right? ...
    (microsoft.public.access.queries)