Solved

simple query question

Posted on 2000-05-15
3
171 Views
Last Modified: 2010-05-02
I know this is wrong but could you help please?


("select description from parts where PCID like form.id.text")

Craig
0
Comment
Question by:csindorf
3 Comments
 
LVL 14

Accepted Solution

by:
wsh2 earned 20 total points
ID: 2811477
strSQL = _
   "SELECT [Description] " & _
   "  FROM Parts " & _
   " WHERE [PCID] LIKE '" & form.id.text & "'"

Enclose from.id.text in single quotes.. <smile>.
0
 
LVL 38

Expert Comment

by:PaulHews
ID: 2811480
Concatinate to make a string
"Select description from parts where PCID like " & form.id.text
0
 

Author Comment

by:csindorf
ID: 2811819
Bingo
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

685 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