irfan512
Dec 11, 2007, 09:12 PM
Dear Sir,
I have used following vb code for displaying particular staffno on screen but it does not work.
table = elect
vb code:
private sub command1_click()
dim stsql as string
stsql = "select * from elect where staffno=" & text1.text
data1.Recordsource = stsql
data1.refresh
datareport1.show
It is not working, please guide me with compelete codes.
Thanking you.
I have used following vb code for displaying particular staffno on screen but it does not work.
table = elect
vb code:
private sub command1_click()
dim stsql as string
stsql = "select * from elect where staffno=" & text1.text
data1.Recordsource = stsql
data1.refresh
datareport1.show
It is not working, please guide me with compelete codes.
Thanking you.