Hi again
As usual this forum is just great and again i thank all in advance.
I have another problem with my combos.I am working on the spreadsheet view.
The combo: quest2res1list
the lookup table:tozaot
the columns displaying in the combo:kod(long),result(string)
the text box to fill: schisans
The combo displays two colmns from the lookup table I need to search:kod, result
in the text box to fill Ineed the second column (result) of the user's selection
I tried the following code but what I recieve is that it changes that field for all the rows:
If Me!quest2res1list.Value = 1 Then
Me!quest2res1 = Null
' Me!quest2res1ans = 0
Else
Me!quest2res1 = Me!quest2res1list.Value
Set dbs = Application.CurrentDb
msearch = Me!quest2res1list.Value
Set rss = dbs.OpenRecordset("SELECT kod, result FROM tozaot where kod= " & msearch)
Me!schisans = rss!result
End If
Can someone help with that.. i know it's "that simple " but from one example I can learn .(-:
Thanx alot
Noam
As usual this forum is just great and again i thank all in advance.
I have another problem with my combos.I am working on the spreadsheet view.
The combo: quest2res1list
the lookup table:tozaot
the columns displaying in the combo:kod(long),result(string)
the text box to fill: schisans
The combo displays two colmns from the lookup table I need to search:kod, result
in the text box to fill Ineed the second column (result) of the user's selection
I tried the following code but what I recieve is that it changes that field for all the rows:
If Me!quest2res1list.Value = 1 Then
Me!quest2res1 = Null
' Me!quest2res1ans = 0
Else
Me!quest2res1 = Me!quest2res1list.Value
Set dbs = Application.CurrentDb
msearch = Me!quest2res1list.Value
Set rss = dbs.OpenRecordset("SELECT kod, result FROM tozaot where kod= " & msearch)
Me!schisans = rss!result
End If
Can someone help with that.. i know it's "that simple " but from one example I can learn .(-:
Thanx alot
Noam