Is This OK

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I'm using this to select a record in a listbox.
Is this code OK?
Thnaks
DS

Forms!frmFXEventPlanner!ListEvent.Selected(Forms!frmFXEventPlanner!TxtPartyID
- 1) = True
 
I'm using this to select a record in a listbox.
Is this code OK?

Does it work? If so, then it's okay ... so long as frmFXEventPlanner is open, that is. If you're actually running this
code on frmFXEventPlanner, then you can use the Me keyword instead:

Me.ListEvent.Selected(Me.txtPartyID) = True
Thnaks
DS

Forms!frmFXEventPlanner!ListEvent.Selected(Forms!frmFXEventPlanner!TxtPartyID
- 1) = True

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
 
Scott said:
Does it work? If so, then it's okay ... so long as frmFXEventPlanner is open, that is. If you're actually running this
code on frmFXEventPlanner, then you can use the Me keyword instead:

Me.ListEvent.Selected(Me.txtPartyID) = True




Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
Great! Doesnt hurt to double check!
Thanks
DS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

2 Listboxes 4
Listbox Lines 4
Run-Time Error 2501 The OpenForm action was cancelled 1
Last Date 3
Open Form 6
Access Cannot select items in listbox 1
Multi-Select SQL 2
Select Item in Listbox 8

Back
Top