Hi
I am trying to write some code for after update on a form. I have created a serparate query (Query2) which differs from the one that the form is based on (Query1) and I want to use this to create an if statement.
I don't know how to write this in VBA.
In simple terms it would read.
If Query2.Expr1>0 Then msgbox "text" Else DoCmd.Close
Can anyone help me with correct code???
I am trying to write some code for after update on a form. I have created a serparate query (Query2) which differs from the one that the form is based on (Query1) and I want to use this to create an if statement.
I don't know how to write this in VBA.
In simple terms it would read.
If Query2.Expr1>0 Then msgbox "text" Else DoCmd.Close
Can anyone help me with correct code???