I have a table with country names and currencies. I am using VBA and am opening a recordset and i want to FIND AND USE use only one speciffic record from that recordset. how do i do it?
any ideas?
i know i can use the find method of the recordsets... how can i use it after i find it.. how do i declare it?
this will use all the rates in the list... for the first one only what do i do?
Set RsType = CurrentDb.OpenRecordset("SELECT SOBP,SOBPDEBIT FROM RFGDebitNotes ;")
Set RsTbl = CurrentDb.OpenRecordset("SELECT * FROM " & RsType!sobpdebit & " ;")
Set RsCur = CurrentDb.OpenRecordset("SELECT SOBP, CUR from CURRFG;")
Do While Not RsType.EOF
DoCmd.SetWarnings (False)
strDBCura = "Update " & RsType!sobpdebit & " set DebitDBN = Debits * " & Val(RsCur!CUR) & ";"
any ideas?
i know i can use the find method of the recordsets... how can i use it after i find it.. how do i declare it?
this will use all the rates in the list... for the first one only what do i do?
Set RsType = CurrentDb.OpenRecordset("SELECT SOBP,SOBPDEBIT FROM RFGDebitNotes ;")
Set RsTbl = CurrentDb.OpenRecordset("SELECT * FROM " & RsType!sobpdebit & " ;")
Set RsCur = CurrentDb.OpenRecordset("SELECT SOBP, CUR from CURRFG;")
Do While Not RsType.EOF
DoCmd.SetWarnings (False)
strDBCura = "Update " & RsType!sobpdebit & " set DebitDBN = Debits * " & Val(RsCur!CUR) & ";"
Last edited: