Dear Jamie,
The command object set up OK. Here what I have:
Dim FromPeriod As Integer
Dim rstHCQTD As New ADODB.Recordset
Dim cmdHCQTD As New ADODB.Command
Set cmdHCQTD.ActiveConnection =
CurrentProject.Connection
If Forms!DateRange!Period = 3 Then
FromPeriod = 0...
Year & Month are numeric fields...
I removed single quotes , but I am still getting a sintax error...
cmdHC.CommandText = "select sum([IViami]) as Total from netsales
where (((IVMKPL) IN('LA', 'LB', 'LC', 'QA', 'QC', 'FA', 'FB', 'FD', 'NA', 'NB', 'NC', 'PA', 'HA', 'PB', 'PC')))
and ihyear= "...
Dear Group,
Maybe somebody can help me out with a passing parameters issue.
Here what I have….
I have a form DateRange; This form has month and year parameters for report data selection…
cmdHC.CommandText =
"select sum([IViami]) as Total from netsales
where (((IVMKPL) IN('LA', 'LB'...
Dear Group,
I am working with access database and I am trying to create chart using chart wizard. The problem is when I am selecting chat wizard option, I am getting an error msg “The class argument in the CeateObject function of the Visual Basic procedure you’re trying to run is invalid”.
Why...
Chris,
I entered this expression onto the "field" and now I am getting an error msg "The exprssin you entered contains invalid index" :((
Dear Steve,
I am trying to change my query, I am in design mode...
Where "offer:iif(check_box=-1,"Free",$$$$$)" should go?? In qry criteria or somewhere else????
Hi Mike,
Offer_flag is a check box. The logic I am working on is :
If check box (offer_flag) if checked,
then offer_freedesc = "FREE"
If it is not checked,
then offer_freedesc = qty * item_cost
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.