Recent content by Pan

  1. Pan

    Write formula in Excel w/Access VBA

    Ok, I've worked through this. The solution was in setting a variable to the recordset value (rs!Formula) and using that in the following line: wbk.Worksheets("Formulas").Range(rs!Column & j).Formula = strFormula instead of directly using the recordset value like this...
  2. Pan

    Write formula in Excel w/Access VBA

    Thanks to both of you for replying. chergh, you're right, the code you put in your reply does in fact work. I was using late binding in my code, so I tried setting it up like yours with early binding and my procedure still doesn't work. I need to use late binding because not all of my users...
  3. Pan

    Write formula in Excel w/Access VBA

    Hi Bob, thanks for your reply. I was using: .Range("A1") = "=Sum(B2:B7)" Now, even with: .Range("A1").Formula = "=Sum(B2:B7)" The spreadsheet shows: =Sum(B2:B7) instead of the actual sum of B2:B7. It's like Excel sees the formula as text and doesn't actually process the formula unless I...
  4. Pan

    Write formula in Excel w/Access VBA

    I've been searching the forums for some time now and have not found an answer to this question: When I write a formula to Excel using Access VBA, why does Excel show the formula syntax as the value of the cell instead of the result of the formula? How do I write my procedure to force Excel to...
  5. Pan

    Graph datasheet - Series By Column property

    Is there a property that I can use to change the datasheet for a chart from Series By Row to Series By Column?
  6. Pan

    Table lock - Run-time error 3211 ????

    Thank you very much for your time. I've figured it out. I was setting a couple of variables to the values in certain columns of the Product combo box on the subform and I had referenced them incorrectly. For some reason it was locking a table that is created by the main form when I select a...
  7. Pan

    Table lock - Run-time error 3211 ????

    It seems like it'd be easier for me to go jump off a bridge and end it all than to strip down this database. ;-) It's a front end for an Oracle data warehouse. The tables are created at run-time, so I'm not sure how to deal with the relationships. I can edit data on the subform and then change...
  8. Pan

    Table lock - Run-time error 3211 ????

    As best as I can tell, the links are set up correctly. If they weren't, I wouldn't think I'd be able to edit a product record on the subform and then successfully select a different customer on the main form. Again, it seems that the problem occurs when I use the Product combo box on the...
  9. Pan

    Table lock - Run-time error 3211 ????

    I'm very thankful to you for replying. However, I knew I ran the risk of miscommunicating by way oversimplifying the issue. I can edit the current record on the main form as much as I want and still successfully select a different customer from the customer combo box without having to create a...
  10. Pan

    Table lock - Run-time error 3211 ????

    I have a form with a combo box that contains a list of customers. Select a customer from the combo box and the form fields populate with general customer info. The form has a subform on it with a combo box where you can select products. Select a product from the combo box and the subform...
  11. Pan

    recordset.open returns no records

    I'm not exactly sure what you mean. I suspect, however, that it's just a limitation of ADO because when I swapped the SQL with a simpler query, it worked fine. The DAO is working great. I feel I need a better understanding of the difference between the two. Anybody have any info? Thanks again.
  12. Pan

    recordset.open returns no records

    I set the DAO reference, plugged in the code, and it's working. Thank you very much.
  13. Pan

    recordset.open returns no records

    Thanks for your time. I meant "ADODB", not "ADO". Sorry. Could it be as you said, ADO is just freaking out on the nested query(s)? Thanks again.
  14. Pan

    recordset.open returns no records

    Here's the code: Dim cnn as New ADO.Connection Dim rst as New ADO.Recordset strSQL = "SELECT qryChargeback.Sort, qryChargeback.[Process Level], qryChargeback.PLDesc, qryChargeback.ProdLineDesc, qryChargeback.Year, qryChargeback.[Reason Code 2], qryChargeback.Desc...
  15. Pan

    recordset.open returns no records

    DAO.Database Gives me the "User-defined type not defined." error.
Back
Top Bottom