i have 2 tables one called prize and the other called raffles. and i am creating a program in vb6 using these tables from ms access 2000.
the person i am building this vb program for wants these 2 tables to be linked. the problem is none of the feilds in either tables match for linking purposes. he does not want to add another feild to either table.
is what i had thought of was taking the feild from the raffle table which is prizeid and setup a textbox to access the data from this feild. i had created a sql statement for this table. next i create a copy to the clipboard by:
clipboard.clear
clipboard.gettext text3
next i took another textbox text4 and add:
text4=clipboard.settext
then i took text4 and stuck it into another sql statement as such:
sql="select prize1, value, gift from prize where prize1 like '" & text4 & "'"
to find the like value between the two feilds.
everything works fine up to:
text4=clipboard.settext
this point.
could you give me some ideas of what i could try that i am missing if any come to mind.
thank you
stephen mentzer
the person i am building this vb program for wants these 2 tables to be linked. the problem is none of the feilds in either tables match for linking purposes. he does not want to add another feild to either table.
is what i had thought of was taking the feild from the raffle table which is prizeid and setup a textbox to access the data from this feild. i had created a sql statement for this table. next i create a copy to the clipboard by:
clipboard.clear
clipboard.gettext text3
next i took another textbox text4 and add:
text4=clipboard.settext
then i took text4 and stuck it into another sql statement as such:
sql="select prize1, value, gift from prize where prize1 like '" & text4 & "'"
to find the like value between the two feilds.
everything works fine up to:
text4=clipboard.settext
this point.
could you give me some ideas of what i could try that i am missing if any come to mind.
thank you
stephen mentzer