I am getting an invalid operation error on the underlined section of code. I cant understand it im copying straight from a book for this stuff and the book always seems to be wrong.
VB Code:
rs.Open strSQL, cnn, adOpenDynamic, adLockOptimistic, adCmdText StatetoAdd = Me.lstStateList.ListIndex With rs [U].AddNew[/U]!FK_State = StatetoAdd .Update .Close Populate_lstEmpStates End With




Reply With Quote