N
nikolaos
hi there folks!!!!
i have an important question to ask but i have to give
you a large amount of feedaback first so please bear with
me.
i am working on a micrsoft office certification project
not run by microsoft.
basically you have to know all the microsoft object model.
i am working in athens and i am a web developer and an
applications developer.
you have heard of ECDL i imagine. it is an organisation
that provides certification of different levels for
microsoft office products to people who take its exams.
so basically my team and i have built an application that
allows the user to take the test.
i have finished word,excel and powerpoint. now i am
working with access.
access unfortunately does not have a macro recorder so
here i have a problem.
so the user sits in front of the computer and then clicks
on the .exe and the application fires up
the application. the user sees a screen and a question.
for example : question1 :
create a form from the table movies containing all the
fields of the table movies and save the form under the
name moviesform.
the user does whatever he thinks is right and then he
hits the button "answer".
after he finishes the test he is awarded marks to see if
he failed or passed the test. so basically is a computer
based test.
so besides building the application which fires up access
and questions i have to write scripts in VBA (macros)
that detect if the user has done what he is supposed to
do and give him a point or not.
for example i use something like this to test the active
form name.
Application.Screen.ActiveForm.Name
if Application.Screen.ActiveForm.Name <>"moviesform" then
msgbox "error"
end if
else
msgbox "ok"
end sub
as you imagine i can not use methods because if i use i
will complete the question not the user.
what i mean is this. if the user is asked to print the
first page of the active report the macro vba will look
like this.
Application.Screen.ActiveReport.Print acPages, 1, 1
but if this thing runs will print the first page of the
active report. so what i want is the user to do it
himself and then miself check a property that tells me if
the user has done so ro not.
i have completed most of the questions but i have a
problem with printing questions.
how can i check if the user has printed the first page of
an active form or of an active report?
appreciate any help.
nikos
i have an important question to ask but i have to give
you a large amount of feedaback first so please bear with
me.
i am working on a micrsoft office certification project
not run by microsoft.
basically you have to know all the microsoft object model.
i am working in athens and i am a web developer and an
applications developer.
you have heard of ECDL i imagine. it is an organisation
that provides certification of different levels for
microsoft office products to people who take its exams.
so basically my team and i have built an application that
allows the user to take the test.
i have finished word,excel and powerpoint. now i am
working with access.
access unfortunately does not have a macro recorder so
here i have a problem.
so the user sits in front of the computer and then clicks
on the .exe and the application fires up
the application. the user sees a screen and a question.
for example : question1 :
create a form from the table movies containing all the
fields of the table movies and save the form under the
name moviesform.
the user does whatever he thinks is right and then he
hits the button "answer".
after he finishes the test he is awarded marks to see if
he failed or passed the test. so basically is a computer
based test.
so besides building the application which fires up access
and questions i have to write scripts in VBA (macros)
that detect if the user has done what he is supposed to
do and give him a point or not.
for example i use something like this to test the active
form name.
Application.Screen.ActiveForm.Name
if Application.Screen.ActiveForm.Name <>"moviesform" then
msgbox "error"
end if
else
msgbox "ok"
end sub
as you imagine i can not use methods because if i use i
will complete the question not the user.
what i mean is this. if the user is asked to print the
first page of the active report the macro vba will look
like this.
Application.Screen.ActiveReport.Print acPages, 1, 1
but if this thing runs will print the first page of the
active report. so what i want is the user to do it
himself and then miself check a property that tells me if
the user has done so ro not.
i have completed most of the questions but i have a
problem with printing questions.
how can i check if the user has printed the first page of
an active form or of an active report?
appreciate any help.
nikos