S
senkurion
Good morning,
I use command button to preview a report of currently displaced name event
procedure for that command button is
stDocName = "Students Report"
If ("name")= "me!" Then
DoCmd.OpenReport stDocName, acPreview, , "[Name]= '" & Me![Name] & " '"
Else
Msgbox "There is no activity related to this student"
end If
In this name is a text field
what happens is even if there is a record for particular student insted of
opening he report, always else command is executed. The code worked perfectly
for first day ( I believe i had the same code first day) the problem started
from second day. Did I messed up while saving the document?? or there is
something wrong in the statement. Can this type of situation arise from some
change in report format??
Please help
I use command button to preview a report of currently displaced name event
procedure for that command button is
stDocName = "Students Report"
If ("name")= "me!" Then
DoCmd.OpenReport stDocName, acPreview, , "[Name]= '" & Me![Name] & " '"
Else
Msgbox "There is no activity related to this student"
end If
In this name is a text field
what happens is even if there is a record for particular student insted of
opening he report, always else command is executed. The code worked perfectly
for first day ( I believe i had the same code first day) the problem started
from second day. Did I messed up while saving the document?? or there is
something wrong in the statement. Can this type of situation arise from some
change in report format??
Please help