hi,
i have a combo box which is going to contain certian fieldnames.
i want to have only certain fildnames in it and not all. i used the following code
Set rs = CurrentDb.OpenRecordset("Select top 1 * from Publishers;"
For i = 0 To rs.Fields.Count - 1
If rs.Fields(i).Name <> "Balance" Or rs.Fields(i).Name <> "PubID" Then
strNames = strNames & rs.Fields(i).Name & ";"
End If
Next i
i didnt want balance and publid in the combo...however this didnt work...
please lemme know
alifya
i have a combo box which is going to contain certian fieldnames.
i want to have only certain fildnames in it and not all. i used the following code
Set rs = CurrentDb.OpenRecordset("Select top 1 * from Publishers;"
For i = 0 To rs.Fields.Count - 1
If rs.Fields(i).Name <> "Balance" Or rs.Fields(i).Name <> "PubID" Then
strNames = strNames & rs.Fields(i).Name & ";"
End If
Next i
i didnt want balance and publid in the combo...however this didnt work...
please lemme know
alifya