By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,940 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,940 IT Pros & Developers. It's quick & easy.

Access Macro

P: n/a
I am trying to create a macro that opens a form and displays a message box
and records if the condition holds true if no records match I want it to
go to the next criteria in another form here is what I have

Action:Open Form
Form Name: name of form
view:datasheet
filter name:name of form
where condition:forms!name of form!name of column I want>2

Action:msgbox
condition:same as where condition above and I put my message below to tell
it what i want
then I want it to stop it the condition is ture so I put
... stop macro and close form with ... as condition again
if this passes I want it to go to the next form so I do
open form again with my criteria and same actions again but if the first
condition has no records it says data type mismatch

Please help I have been working on this for a month and I have tried
everything through trial and error.

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
TweetyByrd posted:
"I am trying to create a macro that opens a form and displays a message box
and records if the condition holds true if no records match I want it to
go to the next criteria in another form."

-----------------------------------------------------
You should only use the macro to open the form. The rest should be handled
from within the form itself coding. Or the entire task should be handled by a
module.
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.