20. oktober 2021 - 19:43
Der er
8 kommentarer
Gem opdateret post på en form side
I en form har jeg: CurrentDb.Execute "UPDATE Produkt SET Fabrikat ............ Når man går ud af formen gemmes posterne der er blevet opdateret. Men hvis man ikke går ud af formen hvordan gemmes posterne så? Problemet er jeg skal opdatere et dataark på en anden form inden formen forlades.
Annonceindlæg fra Infor
20. oktober 2021 - 19:54
#1
CurrentDb.Execute "UPDATE Produkt SET Fabrikat ...it shouldnt be necessary to leave the form to update the records, thats what the SQL does.
22. oktober 2021 - 10:34
#7
When do you get the error 7878? (Data has changed) Did you try looking at the data in th etable after you have run the "CurrentDb.Execute "UPDATE Produkt."? This is really just to show you that the data IS updated in the table, and its only the forms data which needs refreshing to reflect the changes? You can probably use standard error handling to catch the error and respond accordingly.