auto event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If date is "Monday"
open query........

The "Monday" bit is important because it is doing an "end of week" update

Can someone help please
I am stuck again
 
BrianMcC said:
If date is "Monday"
open query........

The "Monday" bit is important because it is doing an "end of week"
update

Can someone help please
I am stuck again

If Format(Date(),"dddd") = "Monday" Then ...
or
If Weekday(Date(),vbMonday) = 1 Then...
 
If date is "Monday"
open query........

The "Monday" bit is important because it is doing an "end of week" update

Can someone help please
I am stuck again

What do you want to trigger this query? Opening the database? Opening
a form? Turning on the computer <g>?

And why do you want to "open a query"? Is this an action query which
you want to execute, or what?

The short answer is

If DatePart("w", Date()) = 2 Then
<open the query>
End If

but without knowing the context it's hard to suggest more!

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top