• Statement doesn’t work (Access 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Statement doesn’t work (Access 2003)

    Author
    Topic
    #436020

    Hello All,
    I have some code, looks like this “Debug.Print Forms![frmincidents].[equip subform]![Text50]”. I have been using this for some time but just recently switched from Access 2002 to Access 2003. Now it tells me “Can’t find “|” in your expression”. There must be a slight change in the syntax acceptance between the two versions. Anyone have any ideas?

    Thanks,
    Mark

    Viewing 0 reply threads
    Author
    Replies
    • #1032460

      Try using a bang ! instead of a point .

      Debug.Print Forms![frmincidents]![equip subform]![Text50]

      • #1032461

        Thanks Hans,
        I did try that and it says “Can’t find field equip subform in your expression”. I failed to note that I moved this object from the main part of the form to the footer, does that make a difference?

        Thanks,
        Mark

        • #1032463

          It shouldn’t matter whether the subform is in the detail section or in the form footer. Perhaps the name got changed when you moved the subform.

          You must use the name of the subform as a control on the main form. This is not necessarily the same as the name of the subform in the database window. To find the control name, open the main form in design view and click one on the subform. Don’t click on the subform a second time, for that will select something in the subform. The control name will be displayed in the Objects box on the toolbar, and in the title bar of the Properties window, and of course in the Name property.

          • #1032476

            Hi Hans,
            Looks like the subform name got changed to child154 for some reason.

            Thanks,
            Mark

    Viewing 0 reply threads
    Reply To: Statement doesn’t work (Access 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: