Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Within VBA code for Access 2000 I'm

Status
Not open for further replies.

wrbodine

Programmer
Aug 24, 2000
302
US
Within VBA code for Access 2000 I'm calling a stored procedure (SQL 7.0). The row of data is being inserted correctly, except for one problem, its only inserting the first character of the data (except for the ones that are money datatype in SQL, which insert fine). These datatypes are nvarchar(50) in the SQL database.

I've used a msgbox to print out the parameter string list and all the other characters are there. (I've also tried appending the parameters using the parameter object and have the same problem of only one character going thru.) Does anyone have any idea why this might be?

Thanks,
Ray
 
Actually this was a simple SQL problem that we just found; in the stored procedure the lengths of the variables weren't specified, and were defaulting to 1!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top