Open Form addition

B

Bob Vance

This is part of my code on my OpenForm , can [frmZeroAmountHolding] be added
to this code as I have the same List Box lstModify on that form as
well........Thanks for any help......Bob

recInvoice_ItMdt.Open "SELECT * FROM tblInvoice_ItMdt WHERE
IntermediateID=" _
& Nz(Form_frmMain.lstModify, 0) & " AND HorseID=" _
& Nz(Form_frmMain.lstModify.Column(1), 0),
CurrentProject.Connection, adOpenDynamic, adLockOptimistic
 
T

Tom van Stiphout

On Mon, 6 Oct 2008 22:23:31 +1300, "Bob Vance" <[email protected]>
wrote:

Rather than uing Form.Control syntax, you can use:
Forms(strMyFormName).Controls(strMyControlName)

-Tom.
Microsoft Access MVP
 

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

Ok This one is Tuff 3
Add to a Command Button 6
Cant find subForm 5
Add One Condition! 3
Using a Check Box as a Condition 4
Form Load problem 2
Adding a Field to a Function 5
Field Size Dilemma 12

Top