I have googled and searched this forum and have found several different ways to run an update query in but i can get them to work quite correctly.
What is the cleanest way to run an update query in vba
I am trying :
Dim dbs As Database
Dim lngRowsAffected As Long
Dim lngRowsUpdated As Long
Dim UpdateBID As String
UpdateBID = Me.BillingInvoiceID
Set dbs = CurrentDb
lngRowsAffected = dbs.RecordsAffected
dbs.Execute "Update tbl_RissData Set tbl_RissData.BID = UpdateBID ;", dbFailOnError
lngRowsUpdated = dbs.RecordsAffected