Solved

Access 97 DoCmd Syntax Question

Posted on 2014-03-06
2
387 Views
Last Modified: 2014-03-06
I have a syntax error in these statements please help
If In1a > "" Then
                strSQL = "INSERT INTO BlendMix([FPC-ID NUMBER],[Blend Type],[BlendMix],[BlendPercent]) VALUE ('[Blend Type]','[Blend Type]','[Mixd1]','[Percent1]');"
                DoCmd.RunSQL strSQ
                End If
                          Thank you
                                  DWG.
0
Comment
Question by:Denthion
2 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39909418
Hi,

Shouldn't it be  VALUES

strSQL = "INSERT INTO BlendMix([FPC-ID NUMBER],[Blend Type],[BlendMix],[BlendPercent]) VALUES ('[Blend Type]','[Blend Type]','[Mixd1]','[Percent1]');"

EDIT
as Values you have twice Blend Type is that correct?

Regards
0
 

Author Closing Comment

by:Denthion
ID: 39909427
Good Catch Thank you
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Creating and Managing Databases with phpMyAdmin in cPanel.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now