In this thread the experts advice is to avoid the LOOK UP fields in tables as much as possible.
Ok. I believe they.
But, until now, I have done something like that:
After that, in Relationship window, I can see the relation between my tables.
If I need, I can to Edit Relationship... in order to Enforce Referential Integrity and Join Type... .
From now, using Form Wizard, the forms will be well created in seconds.
I notice that in field ID_Parent (tblChilds) Access will store a long integer (an ID from tblParents)
Without using the look up fields:
- Manually establish the relationship between tables.
- Create forms
If, in order to create frmChild form, is used the Form Wizard, is necessary to change the created text box into a combo box
- Create RowSource query for combo box (tblChilds) in order to reflect the ID_Parent field (tblParents).
- Set the Column Width property to zero in order to hide ID field (I think no one wish to remember thousands IDs)
So, for me, the resulting form is the same as if I use the look up feature (with a lot of work around).
I must admit that in the tblChilds table the field ID_Parent has no more a SQL string stored in.
More than, I have used extensively the look up fields and never I encountered a problem.
Can you, the experts, to show me some examples where the look up field generate a problem ?
Or even only to develop the theory ?
Or to share your's approach ?
Thank you in advance !
Ok. I believe they.
But, until now, I have done something like that:
Code:
tblParents:
ID_Parent (usually an autonumber)
ParentName
Other fields
Code:
tblChilds:
ID_Child (usually an autonumber)
ID_Parent (Look Up field on tblParents
ChildName
Other fields
If I need, I can to Edit Relationship... in order to Enforce Referential Integrity and Join Type... .
From now, using Form Wizard, the forms will be well created in seconds.
I notice that in field ID_Parent (tblChilds) Access will store a long integer (an ID from tblParents)
Without using the look up fields:
- Manually establish the relationship between tables.
- Create forms
If, in order to create frmChild form, is used the Form Wizard, is necessary to change the created text box into a combo box
- Create RowSource query for combo box (tblChilds) in order to reflect the ID_Parent field (tblParents).
- Set the Column Width property to zero in order to hide ID field (I think no one wish to remember thousands IDs)
So, for me, the resulting form is the same as if I use the look up feature (with a lot of work around).
I must admit that in the tblChilds table the field ID_Parent has no more a SQL string stored in.
More than, I have used extensively the look up fields and never I encountered a problem.
Can you, the experts, to show me some examples where the look up field generate a problem ?
Or even only to develop the theory ?
Or to share your's approach ?
Thank you in advance !
Comment