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" DoCmD.RunSQL X 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: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ Privacy Policy: https://www.documentfoundation.org/privacy