|
-
Oct 17th, 1999, 12:15 PM
#1
Thread Starter
Member
Hello, I got this code below i don't know what actually is wrong with it as it keep
giving me error (No Value Given). Seen like it could not extract the value (which is in Text format) from the text box.
Adodc2.RecordSource = "select ven.*, claim.*
from claim, ven where ven.field1 = claim.vendor and claim.hpcode = " & Text67.Text & ""
Adodc2.Refresh
Thks & regards.
-
Oct 17th, 1999, 02:52 PM
#2
Addicted Member
If your claim.hpcode is text field then you must use <'>:
claim.hpcode = '" & Text67.Text & "'"
[This message has been edited by smalig (edited 10-18-1999).]
-
Oct 17th, 1999, 03:31 PM
#3
Thread Starter
Member
ok thanks, Smalig. Is there a way to assign the recordsource of data object in code?
e.g:
data3.recordsource = '" & text67.text & "'
This is incorrect.
What is the complete statement? Cause seen like this statement is wrong. Thks.
-
Oct 19th, 1999, 07:32 PM
#4
Addicted Member
use this:
set data3.recordsource = blabla
so you initializes the datacontrol with the new recordset.
-
Oct 19th, 1999, 09:41 PM
#5
Guru
don't forget to refresh the RS after assigning a table to it... data1.refresh
-
Oct 20th, 1999, 08:42 AM
#6
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|