DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   How I find out data from access (http://www.daniweb.com/forums/thread135497.html)

abu taher Jul 19th, 2008 9:07 pm
How I find out data from access
 
I use data control to link access file by data properties not code. use simple code like move next etc. I use find next to find data. but when i want to find i write the criteria like Name = taher. But i want I write only taher in find text box.

debasisdas Jul 20th, 2008 5:58 am
Re: How I find out data from access
 
so what is your problem ?

abu taher Jul 20th, 2008 8:33 pm
Re: How I find out data from access
 
I only write, what i want to find. not critera. but now i write "Fieldname = condition" but i want only condition

Jx_Man Jul 20th, 2008 11:26 pm
Re: How I find out data from access
 
You mean you want to find data where Fieldname = condition ?
And condition is user input?

abu taher Jul 21st, 2008 8:23 pm
Re: How I find out data from access
 
yes only condition is input. now i write like Name (fieldname) = taher (condition) but i only input taher (condition)

selvaganapathy Jul 21st, 2008 10:01 pm
Re: How I find out data from access
 
Hi, First get the input from the user Say (sName) and use Field Names in your coding not as input.

Example
 Recordset.Find  "Name'=" & sName & "'"
Here you only give the condition (sName or txtName.Text that is Input) and Field name is predefined by your coding.

electrosoul456 Jul 22nd, 2008 2:06 pm
Re: How I find out data from access
 
use variable to get text value in it and then apply your code on that variable


All times are GMT -4. The time now is 9:51 am.

Forum system based on vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2003 - 2010 DaniWeb® LLC