Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DTS Transformation Issue
Message
From
01/07/1999 09:30:55
Robert Byrd
National Association of Homebuilders
Washington, District of Columbia, United States
 
 
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
00236147
Message ID:
00236411
Views:
13
>>msgbox "sp_InsertTransactions " & cLng(Transaction_ID ) & "," & company & "," & prefix & "," & suffix
>>
>> cmdInsertTrans.ActiveConnection = cnTransConnection
>>' cmdInsertTrans.CommandText = "sp_InsertTransactions " & cLng(Transaction_ID ) & "," & company & "," & prefix & "," & suffix
>>
>> cmdInsertTrans.CommandText = "sp_InsertTransactions " & cLng(Transaction_ID ) & "," & "a*b" & "," & prefix & "," & suffix
>>
>>
>>((((NOTE: In the line above I substituted the constant "a*b" for testing.))))
>
>Try forcing quotes around the company:
>
>cmdInsertTrans.CommandText = "sp_InsertTransactions " & cLng(Transaction_ID ) & "," & "'" & company & "'" & "," & prefix & "," & suffix
>
>-Mike

Thanks for the suggestion.

This gets rid of the error and results in the empty company having a value of " (one double quote). However, I need the value of the empty company to be empty.

Bob
Database Development Team
Previous
Reply
Map
View

Click here to load this message in the networking platform