Jan 27, 2005 #1 Xenocide Programmer Jan 20, 2005 76 CA Hi Is it possible to put a SQLstring I did in my VB code directly in a textbox?
Jan 27, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR What you want in your textbox, the SQL code or the dataset ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
What you want in your textbox, the SQL code or the dataset ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jan 27, 2005 Thread starter #3 Xenocide Programmer Jan 20, 2005 76 CA Well I would like the Textbox to show the result of a on the flyquery doing like this lst3.RowSource = "Select Table850.Depense " & _ "FROM Table850 " & _ "WHERE Table850.Maitre = '" & lst1.Value & "' " & _ "AND Table850.IdEngagementA <> '" & lst1.Value & "' ;" but instead of doing it for a listbox I would to do it for a textbox. Upvote 0 Downvote
Well I would like the Textbox to show the result of a on the flyquery doing like this lst3.RowSource = "Select Table850.Depense " & _ "FROM Table850 " & _ "WHERE Table850.Maitre = '" & lst1.Value & "' " & _ "AND Table850.IdEngagementA <> '" & lst1.Value & "' ;" but instead of doing it for a listbox I would to do it for a textbox.
Jan 27, 2005 1 #4 PWise Programmer Dec 12, 2002 2,633 US if you want just 1 value take a look at dlookup if you want all the values you can open a recordset and loop trhu the set and append it to the textbox Upvote 0 Downvote
if you want just 1 value take a look at dlookup if you want all the values you can open a recordset and loop trhu the set and append it to the textbox
Jan 27, 2005 Thread starter #5 Xenocide Programmer Jan 20, 2005 76 CA thanks pwise.. I never really used a dlookup before care to point me to some exemple ? Upvote 0 Downvote
Jan 27, 2005 #6 PWise Programmer Dec 12, 2002 2,633 US dlookup("Depense","Table850","Maitre='" & lst1.Value & "'AND IdEngagementA <> '" & lst1.Value & "'") Upvote 0 Downvote
Jan 27, 2005 Thread starter #7 Xenocide Programmer Jan 20, 2005 76 CA wa it work perfectly and at the same time solve 2 other problem I had Thanks a lot pwise Upvote 0 Downvote