vba - Contains Syntax for SQL -
I'm here in my head, I'm trying to work it out
Set rex2 = db.OpenRecordset ("Select Count from Events (*) where event_date & gt; = #" & format (Last_Watch_start, "mm / day / yyyy") & amp; ### and MailDate and LT; = "" & Amp;; Format (last_wec_end, "mm / dd / yyyy") and "# and in it (event_type," "1 call has been attempted") and "UNS" in work_id) / Code> where event_type
is in the database The column name and work_ID
is the name of the column in the database I attempted in several ways.
Where in the type of incident "1 call attempted"
is etc., but I have no luck.
I will change my code, but in the event_type many categories have been tried in the list of calls.
I left a left statement ie
where (incident_type, 18) = "tried the first call"
Do anything to work for
Please help me.
Maybe you should use the operator. You have to do something like this:
... where '1 call attempt' as the event_type ... ...
and similarly for work_ID
.
This will match any string that starts with the "first call endeavor" and whatever ends up, because it is like *
wildcard. If you execute it in Access, you use a *
instead of a %
, but use EDB in the OL you have a %
.
Comments
Post a Comment