Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Oct 2002
    Location
    Sayre, Pennsylvania, USA
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Syntax Help (2000)

    Hi,
    I have the following code:
    Do Until TheSelectRS.EOF
    TheInsertSQL = "INSERT INTO tblCCOrderDetails " & _
    "(lngPartsID, txtCCPRNo) " & _
    "VALUES (" & TheSelectRS!lngPartsID & ", '" & _
    CCPRNoDialogBox & "')"

    The CCPRNoDialogBox is no longer a text field but an autonumber. I'm not sure what quotes to take out.
    Thanks,
    Deb

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Syntax Help (2000)

    Remove the single quotes - they specify that CCPRNoDialogBox is a text value.

    <code>TheInsertSQL = "INSERT INTO tblCCOrderDetails " & _
    "(lngPartsID, txtCCPRNo) " & _
    "VALUES (" & TheSelectRS!lngPartsID & ", " & _
    CCPRNoDialogBox & ")"</code>

Posting Permissions

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