Solved

simple query question

Posted on 2000-05-15
3
169 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access query that references subform 5 47
Exit a vb6 apps when a calling it apps closes 15 47
Visual Studio search word table and return Cell index 8 60
Hide vba in gp 7 94
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

776 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