mark curtis
Registered User.
- Local time
- Today, 04:15
- Joined
- Oct 9, 2000
- Messages
- 457
Dear all,
I have posted this question before and I thank the guys who responded but I still can not get it to work so here we go again:
I have a tabbed form built on a table and within one of the tabs I have a sub form(fsubProduct) in datasheet view that holds product records and is filtered by ProjectID(Master/Child) I then have another subform (fsubAcceptance) also in datasheet that is linked by the ProductID in (fsubProduct).
In short mainform - fsubProduct (Linked by ProjectID)and fsubProduct - fsubAcceptance (Linked by ProductID).
So whats the problem?????
Well when a user moves from record to record in fsubProduct I make the associated records in fsubAcceptance appear by using the OnCurrent event in fsubProduct. My problem is that if a user goes straight to the fsubAcceptance to enter data and there is no parent entry in fsubProduct, I get the error message saying Index or Primary Key can not contain null.
I have tried all sorts of if isnull etc but it still will not work.
IS There Anyway in which I could modify the default error message that appears and clear the entry thus sending the focus back to fsubProduct??
Sorry about the essay but I'm STUCK!!!!!
Thanks
Mark
I have posted this question before and I thank the guys who responded but I still can not get it to work so here we go again:
I have a tabbed form built on a table and within one of the tabs I have a sub form(fsubProduct) in datasheet view that holds product records and is filtered by ProjectID(Master/Child) I then have another subform (fsubAcceptance) also in datasheet that is linked by the ProductID in (fsubProduct).
In short mainform - fsubProduct (Linked by ProjectID)and fsubProduct - fsubAcceptance (Linked by ProductID).
So whats the problem?????
Well when a user moves from record to record in fsubProduct I make the associated records in fsubAcceptance appear by using the OnCurrent event in fsubProduct. My problem is that if a user goes straight to the fsubAcceptance to enter data and there is no parent entry in fsubProduct, I get the error message saying Index or Primary Key can not contain null.
I have tried all sorts of if isnull etc but it still will not work.
IS There Anyway in which I could modify the default error message that appears and clear the entry thus sending the focus back to fsubProduct??
Sorry about the essay but I'm STUCK!!!!!
Thanks
Mark