Solved

Data Reports

Posted on 2002-04-24
2
142 Views
Last Modified: 2010-05-02
I have a form with a text box and a command button.

If i click the button a report should be generated for the number which i have entered in the text box.

If i pass the query in the Dataenvironment as below
it works fine.

select * from client_table where(number='c.c.no1')

How should i pass the query to place the text box value instead of the above value.

If u could not understand the question plz mail me

@ vivek_g_r@rediffmail.com

Thanx

Vivek
0
Comment
Question by:vivek_chozha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 50 total points
ID: 6965745
Assuming your text box is called Text1 than your SQL statement should look like:

"select * from client_table where number='" & Text1.Text & "'"

Anthony
0
 

Author Comment

by:vivek_chozha
ID: 6965793
Thanx a lot Antony.

I will soon contact thru mail.

Thanx once again.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Suggested Courses
Course of the Month3 days, 15 hours left to enroll

630 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