User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Community Introductions section within the Coffee House category of DaniWeb, a massive community of 402,918 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,210 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Community Introductions advertiser: Programming Forums
Views: 132 | Replies: 4
Reply
Join Date: Jul 2008
Posts: 3
Reputation: JohnandDixie is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
JohnandDixie JohnandDixie is offline Offline
Newbie Poster

Hi from JohnandDixie

  #1  
Jul 8th, 2008
Hi my name is John from I U.K.. Have only recently got back into progarmming following the death of my wife in April this year, so could really do with help on a few things I am trying at the mo!
Other than computers my other interests are my lovely American Bulldod, Dixie, music(Bowie/Pistols/Nirvana/Paul Weller and all things goth!!), fishing and long walks in the countryside.. Anyway, the immediate problem I have is building an SQL string with possible parameters, but I get a missing operator error when I try and open the recordset. The code is as follows. The choice parameter is a radio button choice. I haven't got as far as passing dates yet. Please could someone help.

Kind Regards
John

'---------------------------------------------------------------------------
' Function: strbuildSQLstr
' Purpose: Build SQL String to retrieve ADO Recordset
' Paramters: strChoice- string(Good or Bad),strStart- string(start date)
' strEnd - string( End Date)
' Returns: String - SQL Statement build with parameters passed
'---------------------------------------------------------------------------
Function strbuildSQLstr(strChoice As String) As String
Dim strtemp As String

strtemp = "Select * from SizeRange Where Style =" & "'" & txtStyle & "'"
If strChoice > "" Then strtemp = strtemp & "'" & " and WHERE type =" & "'" & strChoice & "'"

' return the SQL String
strbuildSQLstr = strtemp & " " & "ORDER by Date"
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2008
Posts: 295
Reputation: MakeMoneyOnline is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
MakeMoneyOnline's Avatar
MakeMoneyOnline MakeMoneyOnline is offline Offline
Posting Whiz in Training

Re: Hi from JohnandDixie

  #2  
Jul 8th, 2008
Welcome to the forums John.
Glad to have you here!
Reply With Quote  
Join Date: May 2008
Posts: 543
Reputation: selfhelpebooks is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
selfhelpebooks selfhelpebooks is offline Offline
Posting Pro

Re: Hi from JohnandDixie

  #3  
Jul 8th, 2008
Hi John:
Welcome.
Feel free to post your inquiry in the appropriate forum here.
Self-Help Books - Guides to Improve Your Life
Online Travel Agent Program - Live the life of a Travel Agent
Tutoring - Tutoring Help
Term Papers - Term Paper Help
Reply With Quote  
Join Date: Jun 2007
Location: Home
Posts: 2,443
Reputation: zandiago is on a distinguished road 
Rep Power: 6
Solved Threads: 24
Featured Poster
zandiago's Avatar
zandiago zandiago is offline Offline
Nearly a Posting Maven

Re: Hi from JohnandDixie

  #4  
Jul 8th, 2008
Nice of you to join, hope you'll be with us for a lifetime! Sorry to hear about the passing of your wife. We'll be willing to help, once you post your query in the programming section of this forum.
I shot the sheriff....but I didn't shoot the deputy
Reply With Quote  
Join Date: May 2008
Location: Hyderabad, India
Posts: 258
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 27
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

Re: Hi from JohnandDixie

  #5  
Jul 9th, 2008
Welcome to Daniweb forums....
Thanx,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Community Introductions Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Community Introductions Forum

All times are GMT -4. The time now is 4:10 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC