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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax issue - variable in stored proc execution 1

Status
Not open for further replies.

belovedcej

Programmer
Nov 16, 2005
358
US
The line below has incorrect syntax at the intPersonID. It is a Long type in VBA, an integer type on the server.

Could someone advice me as to what my syntax problem is? Thanks!

Code:
Set rst = CurrentProject.Connection.Execute("dbo.CSF_Addresses_List_SP(intPersonID)")
 


Hi,
Code:
Set rst = CurrentProject.Connection.Execute("dbo.CSF_Addresses_List_SP(" & intPersonID & ")")


Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
Thanks! I'm still fuzzy on details like that and miss what may seem obvious. I appreciate the quick responce!
 



It just simple concatenation of strings to form the SQL string.

Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top