Hi there,

Is use Now()-1 in VBA to achieve the date of yesterday in a query. What is the syntax for it in basic.

Thx

Recommended Answers

All 2 Replies

The right code is;

Datetime.date - 1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.