Solved

Missing Operator

Posted on 2004-10-08
1
214 Views
Last Modified: 2009-07-29
want to to a insert

ssql = "INSERT INTO tblhotel (hotelname) VALUES (" & Me.txthotelname & ")"

and just get a missing operator error
0
Comment
Question by:ziwez0
1 Comment
 
LVL 12

Accepted Solution

by:
pique_tech earned 50 total points
ID: 12257910
You have to properly delimit me!txthotelname as a string with single quotes, like so:

ssql = "INSERT INTO tblhotel (hotelname) VALUES ('" & Me.txthotelname & "')"
                                                                        ^^                                ^^
                                                                     here                             and here
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

777 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