By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,903 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,903 IT Pros & Developers. It's quick & easy.

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

P: 27
I'm trying to use the command:

Records.ItemData(records.newindex) = rsMyRS!ID

but it does not recognize what 'newindex' is.

do i not have the proper references included?
Dec 11 '06 #1
Share this Question
Share on Google+
3 Replies


Expert 5K+
P: 8,434
I'm trying to use the command:

Records.ItemData(records.newindex) = 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?
Dec 12 '06 #2

P: 1
...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.SetFocus
lstPanelno.AddItem rstPanelNumbers!panelnumber
lstPanelno.Itemdata(lstPanelno.newindex) = rstPanelNumbers!id 'this row is not working
rstPanelNumbers.MoveNext
Loop

Any clues anyone??

thanks,
Nibalda
Jan 11 '07 #3

Expert 5K+
P: 8,434
...
lstPanelno.Itemdata(lstPanelno.newindex) = rstPanelNumbers!id 'this row is not working
What actually happens?
Jan 11 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.