Results 1 to 5 of 5

Thread: Help with Syntax on db delete using ID (resolved)

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    144

    Help with Syntax on db delete using ID (resolved)

    Hi,
    Can anyone please help me to understand the conversion of this syntax used in the following two scenarios:

    When execute, I get the following error message from the 1st set of code:
    "No value given for one or more required parameters."

    Thanks,

    Phillip

    Code:
    'This code does NOT work
    dim test as string
    test = LTrim(tmpSTR(UBound(tmpSTR)))    ' test = 1
    Set MyRecSet = MyConn.Execute("DELETE * FROM table1 WHERE ID =" & test)
    Code:
    'This code does work
    'dim test as string
    'test = LTrim(tmpSTR(UBound(tmpSTR)))    ' test = 1
    Set MyRecSet = MyConn.Execute("DELETE * FROM table1 WHERE ID =" & "1")
    Last edited by Iat; Sep 8th, 2004 at 03:43 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width