InfoPath - Access 2003 - VBScript - SQL (Append Query) - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

InfoPath - Access 2003 - VBScript - SQL (Append Query)

Last post 04-24-2009 08:23 AM by Wheels. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-24-2009 08:23 AM

    InfoPath - Access 2003 - VBScript - SQL (Append Query)

    Good morning.

    I was wondering why I might be getting an error (FROM statement) when I run the following code:

    Sub CTRL10_7_OnClick(eventObj)

    ' Submit Button

    Dim strSQL, MyConn

    Dim MainAdapter

    Set MainAdapter = XDocument.DataAdapters("Main connection") 

    'SQL statement to run apend query

    strSQL = ""

    strSQL = strSQL & "INSERT INTO tbl_GC100 (Lockbox, [Cash Deposit Date], [Batch Number])"

    strSQL = strSQL & " SELECT @Lockbox, #@Cash_Deposit_Date#, @Batch_Number"

    strSQL = strSQL & " FROM XDocument.DOM.selectSingleNode('dfs:myFields/dfs:dataFields/d:tbl_GC100');"

    MainAdapter.Command = strSQL

    MainAdapter.Query

    Thank you,

    WHEELS

     

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.