aaahhhrrggghhhh
Programmer
Hi.
I have Access XP (SR-2), and it stinks. I have created a report. This report has a recordsource. The recordsource has a reference to a control on a open form. Whatever the value of the control, the recordsource still recieves Null.
Heres the SQL:
SELECT *
FROM NEWLTT_FULLPROP, ORGANISATION
WHERE (((Len([NEWLTT_FULLPROP].[Full Proposal Ref No]))>19) AND ((NEWLTT_FULLPROP.[Promoting Org])=[ORGANISATION].[INTERNAL_ID]) AND ((NEWLTT_FULLPROP.Eligible)=Yes) AND ((NEWLTT_FULLPROP.RoundID)=Trim([Forms]![Reports Menu]![cbRoundSel])));
See where it says ((NEWLTT_FULLPROP.RoundID)=Trim([Forms]![Reports Menu]![cbRoundSel]))), well, this always equates to Null, even if the control cbRoundSel is selected. I have entered Debug.Print [Forms]![Reports Menu]![cbRoundSel] from the Immediate window, and its fine.
So, now you all know how rubbish Access XP is now, I can tell you how I resolved it. Making global variables, and populating them when the value of the control changes. Thanks Microsoft for making it so damned difficult!
An Upset Chappy. Dont be small. be BIG
I have Access XP (SR-2), and it stinks. I have created a report. This report has a recordsource. The recordsource has a reference to a control on a open form. Whatever the value of the control, the recordsource still recieves Null.
Heres the SQL:
SELECT *
FROM NEWLTT_FULLPROP, ORGANISATION
WHERE (((Len([NEWLTT_FULLPROP].[Full Proposal Ref No]))>19) AND ((NEWLTT_FULLPROP.[Promoting Org])=[ORGANISATION].[INTERNAL_ID]) AND ((NEWLTT_FULLPROP.Eligible)=Yes) AND ((NEWLTT_FULLPROP.RoundID)=Trim([Forms]![Reports Menu]![cbRoundSel])));
See where it says ((NEWLTT_FULLPROP.RoundID)=Trim([Forms]![Reports Menu]![cbRoundSel]))), well, this always equates to Null, even if the control cbRoundSel is selected. I have entered Debug.Print [Forms]![Reports Menu]![cbRoundSel] from the Immediate window, and its fine.
So, now you all know how rubbish Access XP is now, I can tell you how I resolved it. Making global variables, and populating them when the value of the control changes. Thanks Microsoft for making it so damned difficult!
An Upset Chappy. Dont be small. be BIG