I have an Access database, I want to check a field in a table to see if it is null. If it is null I want to run a line of code:
Do.Cmd.OpenQuery “QueryTitle”, acViewNormal
If no null value is found I want to close the if statement and then run a different line of code:
Do.Cmd.OpenTable “TableName”, acViewNormal, acEdit
This seems that it should be simple but I am having problems.
Any assistance is appreciated.
This is what I have tried:
If
Table.Field Is Null
Then
DoCmd.OpenQuery "Insert into SubTable", acViewNormal
Else
End If
'DoCmd.OpenTable "Table", acViewNormal, acEdit
Do.Cmd.OpenQuery “QueryTitle”, acViewNormal
If no null value is found I want to close the if statement and then run a different line of code:
Do.Cmd.OpenTable “TableName”, acViewNormal, acEdit
This seems that it should be simple but I am having problems.
Any assistance is appreciated.
This is what I have tried:
If
Table.Field Is Null
Then
DoCmd.OpenQuery "Insert into SubTable", acViewNormal
Else
End If
'DoCmd.OpenTable "Table", acViewNormal, acEdit