<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jp@ledure.be" title="Jean-Pierre Ledure <jp@ledure.be>"> <span class="fn">Jean-Pierre Ledure</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FIREBIRD: Access2Base: Dlookup function generates SQL error"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118767">bug 118767</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>jp@ledure.be
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FIREBIRD: Access2Base: Dlookup function generates SQL error"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118767#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FIREBIRD: Access2Base: Dlookup function generates SQL error"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118767">bug 118767</a>
              from <span class="vcard"><a class="email" href="mailto:jp@ledure.be" title="Jean-Pierre Ledure <jp@ledure.be>"> <span class="fn">Jean-Pierre Ledure</span></a>
</span></b>
        <pre>The SQL statement should not contain
   SELECT TOP 1
but, if I'm not wrong,
   SELECT FIRST 1
instead.

The statement is built in module "Database" of the Access2Base library from
line 1145 on:
   Select Case UCase(MetaData.getDatabaseProductName())

In LO 6.1 the value returned by getDatabaseProductName() is an empty string.
This is clearly a bug.
What does LO 6.2 return ?

To test it, Drew, insert this simple code typically in the TEST module of the
provided database and run it:
   Sub TestType
        MsgBox Application.CurrentDb().MetaData.getDatabaseProductName()
   End Sub

With this answer I can easily complete the Select Case on lines 1145 etc and
make the DLookup run smoothly.

Thanks.
JPL</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>