Recent content by ClaraBarton

  1. C

    OutputTo Excel error

    upon further research I discovered a function at BTAB Development called Send2Excel. I changed Send2Excel(frm As Form, Optional strSheetName As String) to (strSql As String, Optional strSheetName As String) and then used my listbox rowsource as Sql and opened the recordset with the Sql. the...
  2. C

    OutputTo Excel error

    Well, to be perfectly honest, most things I don't understand. I just go with the flow. Sometimes I get the feeling that the code gets tired of dealing with me and just starts working.
  3. C

    OutputTo Excel error

    Well, yeah. but I wanted to give it no name so I wouldn't have to delete it every time. How would that work?
  4. C

    OutputTo Excel error

    Figured it out! Give the Querydef a name as follows: strSql = Me.lstUsage.RowSource Set qdfTemp = CurrentDb.CreateQueryDef("qryTemp", strSql) filePath = "D:\Documents\Access\Mine\Finances\ExportedData.xlsx" DoCmd.OutputTo acOutputQuery, "qryTemp", acFormatXLSX, filePath, True...
  5. C

    OutputTo Excel error

    I want to export the data from a listbox to Excel. I pretty much followed the Microsoft Help to come up with the following: strSql = Me.lstUsage.RowSource Set qdfTemp = CurrentDb.CreateQueryDef("", strSql) filePath = "D:\Documents\Access\Mine\Finances\ExportedData.xlsx"...
  6. C

    Field has no value

    Oh Rats! You guys! now it works!:sneaky: :rolleyes: I'm going shopping.
  7. C

    Field has no value

    click on an item. (brown). it immediately goes to If IsNull(subFrmItem.ItemID) Then and stops. It is not null. It just stops. It cannot have a null ID. Does not have a null idea. Just thinks it does.
  8. C

    Field has no value

    I'm sorry. I thought I did! :rolleyes:
  9. C

    Field has no value

    Well that works.... but it stalls on the first line and I have to push it on. Would you like to look at it? Click Detail and then select an item
  10. C

    Field has no value

    I thought I could have the flow go both ways. The Location subform has all the locations as a recordset and the Detail subform has a recordset of records under the selected location. Mostly it works but the tree loses it's connection on the above situation. So I got this brilliant idea: Public...
  11. C

    Field has no value

    I put both do Events and Set Focus and it seems to be working. If I put only set focus it says you can't go to the specified record. Thank you very much for your time.
  12. C

    Field has no value

    AAARRRGGGHHHH! I Knew That! But wait... I screamed too soon On open of the main form I have: Set subFrmItem = Me!ItemDetail.Form Most of the time it actually does work. But jumping to make the form visible seems to show no valid ID. It immediately works after it complains
  13. C

    Field has no value

    @MajP
  14. C

    Field has no value

    On a treeview click I use this for matching the subform to the clickednode: Public Sub MatchNode() Dim strKey As String Dim ID As Long Dim Children As Integer Children = DCount("*", "tblItems", "flocID = " & Me.txtLocID & " And InUse = True") If...
  15. C

    Element not found

    Gotcha! Thanks
Back
Top Bottom