|
-
Nov 5th, 2005, 08:40 AM
#1
Thread Starter
Lively Member
[RESOLVED] SQL Syntax Error
Hi could someone please tell me what im doing wrong here?
Set Rs = con.Execute("EXEC fillcalendar @myinput= " & lblMonthInt & " @myyear = " & cboYear)
Thanks
-
Nov 5th, 2005, 08:54 AM
#2
Fanatic Member
Re: SQL Syntax Error
Set Rs = con.Execute("EXEC fillcalendar @myinput= " & lblMonthInt & " @myyear = " & cboYear)
Code:
Set Rs = con.Execute("EXEC fillcalendar @myinput= '" & lblMonthInt & "' @myyear = '" & cboYear & "';")
That should do it..
Hope this helps
Kai
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
-
Nov 5th, 2005, 09:20 AM
#3
Thread Starter
Lively Member
Re: SQL Syntax Error
hmm nah it didnt
but this did 
VB Code:
Set Rs = con.Execute("EXEC fillcalendar @myinput=" & lblMonthInt & ", @myyear=" & cboYear)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|