hi ya'll,
im working away on my db and its going quite ok, spent the day trying to sort my popup problem.
I have a popup based on a related table to the main forms table. opening the popup and changing some values from the popup table in the popup then clicking on a button to update a few fields in the main table with some of the values from the popup, I get a write error when i try to change record in the popup..sometimes...did a lot of googeling and it happens a lot apparently hehe..forms somehow editing the same record etc..
im trying to sort out what the correct way is to make a popup that can update records in the mainforms table while itself being based on a related table to the main table..
the popup does display a few fields from the main table related to the popups table but they are not being altered. A selection is made in a field and then on a click a DoCmd.runsql or the execute runs a sql update string...
Some suggested saving the record before running the sql..another says use dirty =false and so on...but whats the right way hehe did try a few but couldnt get a consistent result..
i really dont want to get the prompt asking me to save discard or copy the record to the clipboard when i try updating the record...
any guidance appreciated..
im working away on my db and its going quite ok, spent the day trying to sort my popup problem.
I have a popup based on a related table to the main forms table. opening the popup and changing some values from the popup table in the popup then clicking on a button to update a few fields in the main table with some of the values from the popup, I get a write error when i try to change record in the popup..sometimes...did a lot of googeling and it happens a lot apparently hehe..forms somehow editing the same record etc..
im trying to sort out what the correct way is to make a popup that can update records in the mainforms table while itself being based on a related table to the main table..
the popup does display a few fields from the main table related to the popups table but they are not being altered. A selection is made in a field and then on a click a DoCmd.runsql or the execute runs a sql update string...
Some suggested saving the record before running the sql..another says use dirty =false and so on...but whats the right way hehe did try a few but couldnt get a consistent result..
i really dont want to get the prompt asking me to save discard or copy the record to the clipboard when i try updating the record...
any guidance appreciated..