Search results

  1. P

    How to effectively create/run many vba modules with static values

    My set-up is very simple: the same VBA modules, but different coulmn, row, query name, excel sheet name. Set xlWS = xlWB.Worksheets("Wt") //The name of excel sheet xlRow = (xlWS.Columns("B").End(xlDown).Row) Set qry = db.QueryDefs("6_WH sales_V") //My query name...
  2. P

    How to effectively create/run many vba modules with static values

    Hi Colin, The scrrenshot attached is a sample image of my query output, I have the same kind output a little over than a hundred. 1. Could you write code that creates queries whose names match the excel row and column that the result will go into? for example qryR1CB or qryR1C2 etc. I hope...
  3. P

    How to effectively create/run many vba modules with static values

    I'm terribly sorry for the confusion. I'm tryng to export all the queries, to each cell in Excel. My queries are single value, 1 column 1 row. They get exported to a specific cell in Excel. What I am trying to figure out is how to effectively assign its location (row, column, excel sheet...
  4. P

    How to effectively create/run many vba modules with static values

    General explanation: Users input start date and end date on a form that filters my query 2_Total (single value) e.g. 154,21 (one of my query image attached) Run the VBA function that exports the query to an excel file Current set-up I designate static values to each module (row, column and...
  5. P

    MS Access OpenRecordset parameters and too few parameters issue

    Thank you so much, Gasman. I was struggling with this for days and you solved it like a pro. Thank you!! Hope you have a great day!
  6. P

    MS Access OpenRecordset parameters and too few parameters issue

    Thank you for your response, Ranman. As you stated qdf.parameters(0) & (1) in your example, I do have "BeginDate" & "EndDate" to assign parameters via code. qry.Parameters("BeginDate").Value = [Forms]![Run]![textBeginOrderDate] qry.Parameters("EndDate").Value =...
  7. P

    MS Access OpenRecordset parameters and too few parameters issue

    I'm certain that I have enough parameters, fields declaration to pass values to OpenRecordSet method but I am still stuck. General explanation: Users input start date and end date on a form that filters my query 2_Total (single value) e.g. 154,21 Run the VBA function that exports the...
Back
Top Bottom