Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

serach for records with data control

Status
Not open for further replies.

ayouni

Programmer
Nov 19, 2003
1
TN
I would like to search in Microsoft access database for specific records, and the result must be in dbgrid.

I am using :
Data1.recordsource = "SELECT * from Information where Age >= '" & textsearch.text & "'"
Data1.refresh

When i use this, a message is showing : Type incompatible...

Thanks.
 
If Data1 is your data bound control then try:

"SELECT * from Information where Age >= " & textsearch.text

I'm assuming age is a numeric field???

Mark

The key to immortality is to make a big impression in this life!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top