SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 19th, 2004, 08:00 AM
phil phil is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Gold Coast Australia
Posts: 13 phil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to phil
Too few Parameters in my sql string

Sample 1 works ok where the 4 is, but I need to put the unbound text field Me.[Surname] in place of the 4 as in sample 2
Sample 1
Dim strsql As String
strsql = "INSERT INTO person (firstname,surname, house) VALUES ("

strsql = strsql & rs.Fields(0) + 1 & ", " & 4 & ", " & GetHouse() & ")"

db.Execute (strsql)


Sample 2 does not work, im not sure of the parameters that I may need to put around the unbound text field Me.[surname].value
sample 2
Dim strsql As String
strsql = "INSERT INTO person (firstname,surname, house) VALUES ("

strsql = strsql & rs.Fields(0) + 1 & ", " & Me.[Surname].Value & ", " & GetHouse() & ")"

db.Execute (strsql)

help would be appreciated
Phil

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Too few Parameters in my sql string


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT