Find match record

mithani

Registered User.
Local time
Tomorrow, 01:03
Joined
May 11, 2007
Messages
291
Hello,

Can anyone tell me how to do:

I have one invoice screen. Using Combo, I can select supplier from the supplier table. What I need exactly, when I select any particular supplier, address, telephone and fax should show at invoice screen. I used this command but seems not correct.

me.address.value = [me.comSupplier,2]

Any help?

thanks

mithani
 
To reference other columns in your combo box, other than the bound column, you can use:

Me.address = Me.comSupplier(2)

(remember it is zero based so using 2 means the third column)
 
Thanks Bob,

Getting error messages "Type mismatch"

both are text

Thanks

mithani
 
Each field has to be set up in the table as the same number of characters allowed. So, a text field that is set to 50 characters isn't able to be assigned to one of 45.
 
Thanks Bob,

field size are exactly same. 50

thanks

mithani
 
Then are you absolutely sure that it is Field Number 3 that you want and not 2?
 
Thanks Bob,

I want second field of combo box to be displayed. Is this code correct?

Me.address = Me.comSupplier(1)

Thanks

mithani
 
Bob,

Even I made new form but still same problem. If you have time, can you try at your end?

Thanks

Mithani
 
Hi,

Can anyone help me with this. Why this command does not work.

Me.address = Me.comSupplier(1)

Even i tried msgbox me.comSupplier(1), shows error message "Type Mismatch".

Thanks for your help.

mithani
 
Thanks Bob

Please see the attached file.

Thanks

mithani
 

Attachments

Okay, I think I found your problem. Somehow I missed the syntax. It should be:

(and I added the NZ to deal with null fields):

Me.Text6 = Nz(Me.Combo4.Column(2), "")
Me.Text8 = Nz(Me.Combo4.Column(3), "")
 
Thank you very much Bob.

Working great

mithani
 
Glad to help mithani, as always. How are you coming along with things? Is it starting to gel better for you?
 
Hi bob,

Oh ya diffinately, I appreciate your help always.

thanks

mithani
 

Users who are viewing this thread

Back
Top Bottom