Checkbox to delete

I've already explained to you that a Union Query is a read-only recordset so no you can't update any of the fields that way.
 
Yes VbaInet. Thanks I should look for some output similar to a union query that was fitting the user more readable
 
Nothing wrong with using two subforms, one on top and the other just below.
 
A Union Query is a read-only recordset.

Let's see the SQL.

@Rain, the db in post #30 shows the correct method to use and references the right table. You may have missed that post.

vba

I will give it a rest for a while,

Post 30 does not work for me????
 
vba Last night I was having problems. Tonight all is good. Your sample works like a charm. I have no idea what happened.
 
No problemo old chap! Maybe you were running the original db in error, they're both named the same.
 
That could very well have been the problem.

Thanks.
 
VbaInet. Out of curiosity...
Is it not possible to place a single delete button for both the delete queries?
It would be less confusing for the user than to have two delete button.
Is there some arrangments that can be accomplished?
 
Great VbaInet. It works. I can delete the record .
But now I'm stuck on running Requery.
In Bold is what I have found on the net. But it does not works.

Code:
Private Sub cmdeliminaPrestazioni_Click()
DoCmd.RunCommand acCmdSaveRecord
    CurrentDb.Execute "QueryeliminaPrestazioni"
    CurrentDb.Execute "QueryeliminaPIP"    
Me.Requery
    [B]Me.FRMSottMascQueryPIPPerUnire.Form.Requery[/B]
End Sub

Do you have advices?
 
Hi VbaInet. and all who follow.
I found it:
Code:
[B]Parent![FRMSottMascQueryPIPPerUnire].Form.Requery[/B]
or translate:
Code:
[B]Parent![Subformname].Form.Requery[/B]
Thanks to all
 
Last edited:

Users who are viewing this thread

Back
Top Bottom