|
-
Nov 30th, 2002, 02:51 PM
#1
Thread Starter
Addicted Member
syntax error in sql statement
I keep on getting a 'syntax error in FROM clause' from the SQL querie below.
strSQL = "Select CALIBRECORDS1.*, gauges.instrumentdescription FROM CALIBRECORDS1 join guages on CALIBRECORDS1.instrumennumber=guages.instrumennumber WHERE CALIBRECORDS1.instrumennumber=" & "'" & Form3.Text49.Text & "'"
Anyone know where the problem is ?
Any input would be appreciated.
-
Nov 30th, 2002, 03:03 PM
#2
PowerPoster
How about "Select * from CALIBRECORDS1 ...
-
Nov 30th, 2002, 06:52 PM
#3
Thread Starter
Addicted Member
i'm linking 2 tables via the instrumennumber key field.
-
Nov 30th, 2002, 07:54 PM
#4
What database are you using?
-
Dec 1st, 2002, 05:33 AM
#5
Thread Starter
Addicted Member
hi, i am using the access dbase
-
Dec 1st, 2002, 08:15 AM
#6
Frenzied Member
Try to build a new query and get the sql behind it.
Code:
If Question = Incomplete Then
AnswerNextOne
Else
ReplyIfKnown
End If
cu Swatty
-
Dec 1st, 2002, 02:44 PM
#7
In Access, unlike Sql Server, the word Inner is required.
CALIBRECORDS1 Inner Join guages
-
Dec 2nd, 2002, 10:52 AM
#8
Or Left (depending on what you want to return...)
See top thread on sql info...
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
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
|