marcusblackcat
New Member
- Joined
- Mar 11, 2015
- Messages
- 18
H there. I've been a member for ages but am just getting to grips with access and have come across a little issue I need help with.
Im trying to write some code to only display certain fields if an entry selected from a different table has data in the corresponding second column.
i.e. I have a main table which has a field called "referred_from" and a secondary field called "further_info"
on on the main form, the "referred_from" field is always visible but the _"further_info" field is hidden.
the table (named tblreferrals) holds the "referred_from" and "further_info" but not all entries in this table have "further info" (i.e. We may have received a training referral from a small company without any specific departments (ab tyres for instance) or we may have received a referral from a large organisation with numerous departments - these would all have nitrites in the further info field.
so.. After rambling on.. I need a function which will basically display only the further info box if there is information win this on the tblreferrals.
im looking into using something wihich would basically say "if there is nothing in the further_info field then don't show the further info field on the form"
possibly "if (isnull(dlookup(further_info,tblreferrals,???) and I'm getting stuck and tearing out my hair!! Any chance of some help from a wizard!
Im trying to write some code to only display certain fields if an entry selected from a different table has data in the corresponding second column.
i.e. I have a main table which has a field called "referred_from" and a secondary field called "further_info"
on on the main form, the "referred_from" field is always visible but the _"further_info" field is hidden.
the table (named tblreferrals) holds the "referred_from" and "further_info" but not all entries in this table have "further info" (i.e. We may have received a training referral from a small company without any specific departments (ab tyres for instance) or we may have received a referral from a large organisation with numerous departments - these would all have nitrites in the further info field.
so.. After rambling on.. I need a function which will basically display only the further info box if there is information win this on the tblreferrals.
im looking into using something wihich would basically say "if there is nothing in the further_info field then don't show the further info field on the form"
possibly "if (isnull(dlookup(further_info,tblreferrals,???) and I'm getting stuck and tearing out my hair!! Any chance of some help from a wizard!