Date: prev next · Thread: first prev next last
2023 Archives by date, by thread · List index

Where can I find the syntax of the DoCmd.RunSQL command to be used with
a LOBase Macro in Basic?

My assumption was 
X = "SQL string"
The SQL string runs correctly is correct when executed as SQL Command
in the Base Tools/SQL window.

The Basic Macro with the above statemsnt compiles without error when
the SQL command text is enclosed in "" quotes. But at runtime it halts
with the message that the variable X is not set. However, a Basic Print
statement shows the correct value for X.

(By the way, the Watch function displays no values for any variable.
Not sure if it should)

My conclusion  is that I ma using the wrong syntax for DoCmd.RunSQL

Any ideas?

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.