hi! i'm using a ms access 2003 and vb6. I have a textbox and a datagrid controlled by an adodc. can anyone tell me how can i display the data that I need in the datagrid. example: i entered a lastname "cruz". I want the datagrid to display customers that has cruz surnames? can that be possible. please help me. :)
problematic:)
0
Light Poster
Recommended Answers
Jump to PostTry the following -
Adodc1.Recordsource = "SELECT * FROM MyTableName WHERE FieldName LIKE 'cruz%'" Set Datagrid1.Recordsource = Adodc1
Jump to PostElse
(this is my problem, I need the datagrid to display the lastnames that ends with cruz)
End If
End SubAdd the following -
Else 'this is my problem, I need the datagrid to display the lastnames that ends with cruz) Datagrid1.Recordsource = rs Datagrid1.Refresh End …
All 7 Replies
AndreRet
526
Senior Poster
problematic:)
0
Light Poster
AndreRet
526
Senior Poster
problematic:)
0
Light Poster
AndreRet
526
Senior Poster
Bile
10
Newbie Poster
AndreRet
526
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.