Compiling error

  • Thread starter Thread starter CharlesCount via AccessMonster.com
  • Start date Start date
C

CharlesCount via AccessMonster.com

I have developed a data base over a period of time.
I only used macros. When I attempted to add a calender and get a compiling
error and if I attempt to add function to a button by using expresion builder
it may not work.
Can anyone tell me how I can resolve this error?

Thanks

Charles
 
It would help to know the exact error you're getting.

From your description, though, I suspect your Refernces collection has got
messed up. References problems can be caused by differences in either the
location or file version of certain files between the machine where the
application was developed, and where it's being run (or the file missing
completely from the target machine). Such differences are common when new
software is installed.

On the machine(s) where it's not working, open any code module (or open the
Debug Window, using Ctrl-G, provided you haven't selected the "keep debug
window on top" option). Select Tools | References from the menu bar. Examine
all of the selected references.

If any of the selected references have "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.

If none have "MISSING:", select an additional reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)
 
Thanks, That was very helpfull and I was able to resolve the problem.
No I would need to konw if it is possible to add a calendars to reports or
queries pop up when I run reports with from and to dates.

Thanks Agian

Charles
It would help to know the exact error you're getting.

From your description, though, I suspect your Refernces collection has got
messed up. References problems can be caused by differences in either the
location or file version of certain files between the machine where the
application was developed, and where it's being run (or the file missing
completely from the target machine). Such differences are common when new
software is installed.

On the machine(s) where it's not working, open any code module (or open the
Debug Window, using Ctrl-G, provided you haven't selected the "keep debug
window on top" option). Select Tools | References from the menu bar. Examine
all of the selected references.

If any of the selected references have "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.

If none have "MISSING:", select an additional reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)
I have developed a data base over a period of time.
I only used macros. When I attempted to add a calender and get a compiling
[quoted text clipped - 6 lines]
 
You need to create a form with the calendar(s) on it, and have the query
refer to the control as its parameter, using
Forms![NameOfForm]![NameOfControl]

The form must be open in order for this to work (i.e. running the query will
not cause the form to be opened), so usually one puts a button on the form,
and uses the Click event of the button to launch the report.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


CharlesCount via AccessMonster.com said:
Thanks, That was very helpfull and I was able to resolve the problem.
No I would need to konw if it is possible to add a calendars to reports or
queries pop up when I run reports with from and to dates.

Thanks Agian

Charles
It would help to know the exact error you're getting.

From your description, though, I suspect your Refernces collection has got
messed up. References problems can be caused by differences in either the
location or file version of certain files between the machine where the
application was developed, and where it's being run (or the file missing
completely from the target machine). Such differences are common when new
software is installed.

On the machine(s) where it's not working, open any code module (or open
the
Debug Window, using Ctrl-G, provided you haven't selected the "keep debug
window on top" option). Select Tools | References from the menu bar.
Examine
all of the selected references.

If any of the selected references have "MISSING:" in front of them,
unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.

If none have "MISSING:", select an additional reference at random, back
out
of the dialog, then go back in and unselect the reference you just added.
If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)
I have developed a data base over a period of time.
I only used macros. When I attempted to add a calender and get a
compiling
[quoted text clipped - 6 lines]
 
Thanks so much for your help.
I must be doing something wrong becuasae when I type in the criteria as
Forms![DayPassRep]![Text0] it changes to [Forms]![DayPassRep]![Text0] and it
does not work.

Charles
You need to create a form with the calendar(s) on it, and have the query
refer to the control as its parameter, using
Forms![NameOfForm]![NameOfControl]

The form must be open in order for this to work (i.e. running the query will
not cause the form to be opened), so usually one puts a button on the form,
and uses the Click event of the button to launch the report.
Thanks, That was very helpfull and I was able to resolve the problem.
No I would need to konw if it is possible to add a calendars to reports or
[quoted text clipped - 42 lines]
 
Back
Top