H
hsdaguilar
Hello,
I have a form called "frmPrimary" which contains fields "txtAddress" and
"cboStreet".
I have a subform (linked to frmPrimary) called "frmProject" which contains
the field "Keyword".
And
I have a subform (linked to subformProjects) called "frmEntitlements" which
contains the fields "Entitlement Type" and "Entitlement Id".
I have created a form called "frmQuery" with all these same fields and an
option group with three options: 1. Address , 2. Keyword and 3. Entitlement
If you select option 1 it enables the fields txtAddress and cboStreet, etc...
My goal is that once you press the OK button depending on which option you
selected and the value input in the corresponding fields, "frmPrimary" would
open to the corresponding record.
In other words, they can find a record in frmPrimary based on an address, a
keyword, or an entitlement.
Note: One Address can have mutliple projects (each project has it's own
Keyword) and each Project can have multiple entitlements.
I was thinking something like
If grpPrimaryQuery = 1 Then
DoCmd.OpenForm "frmPrimary" and then I'm at a loss, especially when it comes
to Keyword and Entitlement Type/Id because they are on the subforms.
I'm sortoff a newbie and would appreciate any assistance. Thank you.
I have a form called "frmPrimary" which contains fields "txtAddress" and
"cboStreet".
I have a subform (linked to frmPrimary) called "frmProject" which contains
the field "Keyword".
And
I have a subform (linked to subformProjects) called "frmEntitlements" which
contains the fields "Entitlement Type" and "Entitlement Id".
I have created a form called "frmQuery" with all these same fields and an
option group with three options: 1. Address , 2. Keyword and 3. Entitlement
If you select option 1 it enables the fields txtAddress and cboStreet, etc...
My goal is that once you press the OK button depending on which option you
selected and the value input in the corresponding fields, "frmPrimary" would
open to the corresponding record.
In other words, they can find a record in frmPrimary based on an address, a
keyword, or an entitlement.
Note: One Address can have mutliple projects (each project has it's own
Keyword) and each Project can have multiple entitlements.
I was thinking something like
If grpPrimaryQuery = 1 Then
DoCmd.OpenForm "frmPrimary" and then I'm at a loss, especially when it comes
to Keyword and Entitlement Type/Id because they are on the subforms.
I'm sortoff a newbie and would appreciate any assistance. Thank you.