in access 2007, I have a form in that when i save the form sold is yes so this sold field value is automatically update to other table's flag. after saving has been done in the form update to other tables field to yes. how
please help me.
in access 2007, I have a form in that when i save the form sold is yes so this sold field value is automatically update to other table's flag. after saving has been done in the form update to other tables field to yes. how
please help me.
Why are fields in different tables dependent on each other?
Run UPDATE query.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
i have a purchase table and sale table. once sale is done from form i.e., when i click on save button in sales form . automatically update to purchase tables flag field would be yes. how please give me update query. is it possible to attach the query for embedded macro save button.
I don't know your data structure so can't be specific. I don't use macros, only VBA which would be something like:
If Me.checkSold = True Then CurrentDb.Execute "UPDATE tablename Set fieldname=True WHERE fieldname=" & Me.ID
I suppose you can have a saved Access query object and use macro to run the query.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.