Search results

  1. C

    Element not found

    Thanks guys! On to my next problem... The smallest things can bring everything to a screaming halt! 😜 Actually, now that I check more carefully, it looks as though the item is always a selected node so I may go that route.
  2. C

    Element not found

    Although I didn't know there was a difference... You guys harp and harp DEBUG DEBUG DEBUG. I would not attempt a question here without DEBUGGING! :rolleyes:
  3. C

    Element not found

    still returns Joint account papers
  4. C

    Element not found

    IT and LO are my identifiers. So it seems like the string should be "IT57" but instead nodes returns the text name "Joint account papers". I was very confused by this but decided it was a Nodes value. So Set ItemNode = tvw.Nodes("IT" & Me.ItemID) the ("IT" & Me.ItemID) returns IT57 but...
  5. C

    Element not found

    @MajP I'm sorry but I can only work on this a little at a time so it's dragging out... Item details (add, edit, remove, etc) are on a subform and the treeview is on the mainform. I don't delete items as such but only clear fields so that the DocNo stays and is used as items new are added or...
  6. C

    Treeview initialize

    Ahhh!! Thank you so much!
  7. C

    Treeview initialize

    at the top of frmDetail: Public WithEvents tvw As TreeviewForm 'Private WithEvents subFrmItem As Access.Form 'Private WithEvents subFrmLoc As Access.Form Public FAYTitems As FindAsYouTypeCombo
  8. C

    Treeview initialize

    yes it's frmDetail. Now I'm not clear on what you're saying... this is the main form code: Public Sub InitTree() Dim nd As Node Dim strQry As String ' Debug.Print NodeQuery If Me.TVWSort = 1 Then strQry = "qryNumeric" Else: strQry =...
  9. C

    Treeview initialize

    @MajP I need to update the branch after adding an item: Public Sub UpdateBranch() Dim tvw As TreeviewForm Dim ParentNode As Node Dim newNode As Node Dim SelectedNode As Node Dim Key As String Set tvw =...
  10. C

    Solved Position form to added record

    Oh! The things I don't know! Actually just strCriteria works. Thank you so much.
  11. C

    Solved Position form to added record

    Of Course! Why couldn't I think of that? Thank you! I tried setting the recordset from the table and then bookmarking the .last modified before requerying the form but I couldn't get a valid bookmark that way. Why is that?
  12. C

    Solved Position form to added record

    What I need to know is how can I grab the record ID right after the ExecuteSQL.. whether it's a new record or an update of a previous record.
  13. C

    Solved Position form to added record

    No, that's an ID that connects it as a subform. It's a parent ID and there are many subrecords. The record ID is created on the INSERT or it's located on the UPDATE
  14. C

    Solved Position form to added record

    I know how to get the ID (DMax) of a new record but I fill in (Update) unused records that aren't in the form recordset until the checkbox inuse is positive. I'm stumped as to how to get the ID if it isn't a new record. These records aren't included in the forms recordset until the table is...
  15. C

    Solved StringFormatSQL from Northwind

    Be sure your sins will find you out! UPDATE tblItems SET ITPath = '1 > 11 > 2', Item = '(New)', InUse = True WHERE flocID = 12 and DocNo = 1;
  16. C

    Solved StringFormatSQL from Northwind

    Now I've done a complete circle and am back where I started. :rolleyes: strSql = StringFormatSQL("UPDATE tblItems" & _ " SET ITPath = {0}," & _ " Item = '(New)'," & _ " InUse = True" & _...
  17. C

    Solved StringFormatSQL from Northwind

    Aargh! "1 > 3" ! and "(New)" ! Well... getting closer strSql = StringFormatSQL("UPDATE tblItems" & _ " SET ITPath = """ & strITPath & """," & _ " Item = " & """(New)""" & "," & _ " InUse = True" & _...
  18. C

    Solved StringFormatSQL from Northwind

    Ah! I KNEW you'd know! Thanks! So Here's my update : strSql = StringFormatSQL("UPDATE tblItems" & _ " SET " & StringFormat("ITPath = {0}", strITPath) & "," & _ " Item = " & "(New)" & "," & _ " InUse =...
  19. C

    Solved StringFormatSQL from Northwind

    When a variable is a string, the following adds quotes to it: strSql = StringFormatSQL("UPDATE tblItems" & _ " SET ITPath={0}," & _ " Item={1}," & _ " InUse={2}" & _ "...
  20. C

    Solved Node level path

    Yes! exactly. Thank you so much.
Back
Top Bottom