G
Guest
I'm slowly going out of my mind with Access and VBA. As those of you who have
offered your help before know, I have programmed in COBOL and C, but have not
been able to quite grasp the VBA syntax. I have a form that is used to enter
information on yard sales for a city. There is a button on the form that
opens another form that is used to enter family members that reside at the
same as address as the person having the sale. I can't seem to figure out how
to pull up the family member records for the person entered in the initial
form. I've checked the values before I use the docmd and the link criteria
string has the right values. However, when I check the form that's called to
be opened, the values of the fields in that table are not set. I now realize
that that's not going to happen since it's being passed as a 'where'
statement without the 'where'. How to I get the values from one form to the
other? I think if I could ever grasp this, it would help to flip on the light
for VBA and Access. The table for the initial form is:
CustomerID - PK
FirstName
LastName
Address
PhoneNumber
The table for the form being called is:
FamiliyMembersID - PK
CustomerID
CustomerAddress
RelationsName
Relationship
If anyone could help switch on the light, I would be very appreciative.
Thanks for everyone's help in the past and for any help in the future.
RandyM
offered your help before know, I have programmed in COBOL and C, but have not
been able to quite grasp the VBA syntax. I have a form that is used to enter
information on yard sales for a city. There is a button on the form that
opens another form that is used to enter family members that reside at the
same as address as the person having the sale. I can't seem to figure out how
to pull up the family member records for the person entered in the initial
form. I've checked the values before I use the docmd and the link criteria
string has the right values. However, when I check the form that's called to
be opened, the values of the fields in that table are not set. I now realize
that that's not going to happen since it's being passed as a 'where'
statement without the 'where'. How to I get the values from one form to the
other? I think if I could ever grasp this, it would help to flip on the light
for VBA and Access. The table for the initial form is:
CustomerID - PK
FirstName
LastName
Address
PhoneNumber
The table for the form being called is:
FamiliyMembersID - PK
CustomerID
CustomerAddress
RelationsName
Relationship
If anyone could help switch on the light, I would be very appreciative.
Thanks for everyone's help in the past and for any help in the future.
RandyM