RCheesley
Registered User.
- Local time
- Today, 10:13
- Joined
- Aug 12, 2008
- Messages
- 243
Hi all,
I'm coming on leaps and bounds and am actually getting to grips with VBA now (woohoo!) but wondered if someone could point me towards best practice for accomplishing the following task:
I have a DB which contains analysis forms for patients with a particular condition - and they may well have this more than once, and hence have several forms within the Database.
When I enter in a new record, the first field is NHS Number.
What I need to accomplish:
Thanks in advance
Ruth
I'm coming on leaps and bounds and am actually getting to grips with VBA now (woohoo!) but wondered if someone could point me towards best practice for accomplishing the following task:
I have a DB which contains analysis forms for patients with a particular condition - and they may well have this more than once, and hence have several forms within the Database.
When I enter in a new record, the first field is NHS Number.
What I need to accomplish:
- When the NHS number is entered, I would like to somehow query the table to see whether there is an existing record by that number
- I would like to output the data if it's there, as a list of Form ID's or perhaps a slightly more swanky way of having links to open those forms in read-only view (I already have a read only form established).
- Could this be done with a subform? If so can it be hidden when there are no existing forms, and only shown if there are?
- I have been using AfterUpdate quite a bit to enable/disable or make visible/hide, but don't know if this could be used? Would I need to write a query?
Thanks in advance
Ruth