Solved

simple query question

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

758 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

25 Experts available now in Live!

Get 1:1 Help Now