What 'reference' is .itemdata and 'newindex' in?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psuaudi
    New Member
    • Oct 2006
    • 27

    What 'reference' is .itemdata and 'newindex' in?

    I'm trying to use the command:

    Records.ItemDat a(records.newin dex) = rsMyRS!ID

    but it does not recognize what 'newindex' is.

    do i not have the proper references included?
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by psuaudi
    I'm trying to use the command:

    Records.ItemDat a(records.newin dex) = rsMyRS!ID

    but it does not recognize what 'newindex' is.

    do i not have the proper references included?
    What's the context? If I remember correctly, NewIndex refers to the index of an entry which was just added into a listbox or combobox. Perhaps you're trying to do this without the preceding add?

    Comment

    • Nibalda
      New Member
      • Jan 2007
      • 1

      #3
      ...jumping in...

      I've got the same problem. It doesn't seem that you can use newindex in access (vb)? Itemdata is there but i can't figure out how to add it since i can't use newindex.

      The code that i'm trying to write but is not working:
      Do While rstPanelNumbers .EOF = False
      lstPanelno.SetF ocus
      lstPanelno.AddI tem rstPanelNumbers !panelnumber
      lstPanelno.Item data(lstPanelno .newindex) = rstPanelNumbers !id 'this row is not working
      rstPanelNumbers .MoveNext
      Loop

      Any clues anyone??

      thanks,
      Nibalda

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by Nibalda
        ...
        lstPanelno.Item data(lstPanelno .newindex) = rstPanelNumbers !id 'this row is not working
        What actually happens?

        Comment

        Working...