hi, i need your help
i have a form 'search' to search single data that I have in some tables.
the form contain 3 combobox; 'combotable' to choose table, 'comboyears' to choose field year in table, and 'combofield' to choose the fields in the table.
when i click command button i want to display the fill in the field that i choose based on the year using label
search = comboyears.Value
tabel = Me.combotable.Value
Set rs = CurrentDb.OpenRecordset(tabel, dbOpenSnapshot, dbReadOnly)
rs.FindFirst "[" & Me.cmbIndi.Value & "] is null and [Tahun]='" & Me.cmbTahun.Value & "'"
If rs.NoMatch Then
LblData.Caption = [rs(" & Me.cmbIndi.Value & ") is not null And (Year) = search].Value
in the last syntax sill error, i dont know what is wrong.
may somebody can help me
thank youu
i have a form 'search' to search single data that I have in some tables.
the form contain 3 combobox; 'combotable' to choose table, 'comboyears' to choose field year in table, and 'combofield' to choose the fields in the table.
when i click command button i want to display the fill in the field that i choose based on the year using label
search = comboyears.Value
tabel = Me.combotable.Value
Set rs = CurrentDb.OpenRecordset(tabel, dbOpenSnapshot, dbReadOnly)
rs.FindFirst "[" & Me.cmbIndi.Value & "] is null and [Tahun]='" & Me.cmbTahun.Value & "'"
If rs.NoMatch Then
LblData.Caption = [rs(" & Me.cmbIndi.Value & ") is not null And (Year) = search].Value
in the last syntax sill error, i dont know what is wrong.
may somebody can help me
thank youu