473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Help with Run-time error '3077' Syntax error (missing operator) in expression

Hey I am really stuck and can't figure out what is wrong here is the code line and surrounding code, if anyone can help i would appreciate it. Thanks
This first line is the line that has a problem and the following after the big gap is the whole thing.

MySet.FindFirst Criteria ' Locate first occurrence.

Expand|Select|Wrap|Line Numbers
  1. Option Compare Database   'Use database order for string comparisons
  2.  
  3. Private Sub Form_BeforeUpdate(Cancel As Integer)
  4.     ' Me![Updated] = Now
  5. End Sub
  6.  
  7. Private Sub SelectCompany_AfterUpdate()
  8.     Dim Criteria As String, MyDB As Database, MySet As Recordset
  9.  
  10.     Criteria = "[Company] = " & "'" & Forms![Customers]![SelectCompany] & "'"
  11.     Set MyDB = DBEngine.Workspaces(0).Databases(0)
  12.     Set MySet = Forms![Customers].RecordsetClone
  13.     MySet.FindFirst Criteria    ' Locate first occurrence. 
  14.  
  15.     Me.Bookmark = MySet.Bookmark
  16.  
  17.     Me![Company].SetFocus
  18.     Me![SelectCompany] = Null
  19.  
  20. End Sub
Jul 30 '07 #1
1 4610
missinglinq
3,532 Expert 2GB
While single lines of code don't really require the use of Code Tags, all code posted consisting of 2 or more lines does.

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

For VBA code the tag is Code=vb (no spaces) with square brackets surrounding it.

Since you're new to the forum, please take the time to read the Posting Guidelines:

http://www.thescripts.com/forum/thread559246.html

Please use [code] tags in future.

Thank you and Welcome to TheScripts!

Linq ;0)>
Jul 30 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: John Salerno | last post by:
I know this is a C# group, but I'm getting a little desperate. It's been several weeks since I posted my question to the WD forums and no one has responded. All I want to know is how to get...
6
by: Lucas Cowald | last post by:
Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p Can you show me a code how to run this...
13
by: Siegfried Heintze | last post by:
I refered the engineer at my hosting service to http://support.microsoft.com/default.aspx?scid=kb;en-us;825738 where he tried to follow the directions there. He said there was no such file:...
1
by: BuzzLight | last post by:
Thanks alot Charles m8, your suggestion was very useful, Iam very new to vb.net ... I used application.run and it works fine but I do not know what "Application.Run" means.. what it does.. But...
5
by: Andrew | last post by:
Hey all, Requesting help from the VB.Net gurus in here. I was given a task to write a Windows Service (VB.Net) that would run an external program, and if that program closed for any reason...
17
by: Saps | last post by:
Hi all. Can anyone help me here. I have loads of .sql files and i need a way to call these from my asp page so the user can run them from the browser. Meaning i have a page with a list of all...
2
by: pvadhi07 | last post by:
Hello Everyone, I hope you can help me. My problem is I have to run server programs from multiple Linux machines, but I will run them remotely from one machine. That is I will run program1 on...
1
by: rfranzl | last post by:
Hello, I need some help, I have about 200 databases that are copies of an original database that has a similiar table in all of the databases, called "tblCodebook". What I am trying to do is to...
2
by: =?Utf-8?B?SnJ4dHVzZXIx?= | last post by:
I just started using Windows Live OneCare, I had been using Norton, but was unable to fix the problems I was having. I have yet been unsuccessful with OneCare as well. I keep getting the same...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.