Automatic Population of Field

Gypsie Jones

Registered User.
Local time
Today, 14:54
Joined
Jan 31, 2014
Messages
13
Hi,

I am putting together a simple database to do with monitoring maintenace of buildings. I was the building number to automatcially populate when the building name is select.

I have got the the point where I have building name and number in the building name combo box but i'm stuck with the after update code builer part.

I currently have:

Me.Building_NameControl = Me.Building_Number.Column(2)

But doesn't seem to work.

Can anyone help please.....I don't really understand syntax!

Many Thanks,
 
The Column property is zero based, so the second column would be 1.
 
Thanks,

I've put this:

Me.Building_NameControl = Me.Building_Number.Column(1)

but still doesn't want to work.

:banghead:
 
Oh, it wants to work. :D

What is the column count property of the combo? It needs to be 2.
 
And that code is in the after update event of the combo? Can you post the db here?
 
I think the code is in the right place. I'll upload the db in the morning. I'm away from my computer now.

I really appreciate your help. I'm on a steep learning curve!
 
Sorry, I'm dense and should have seen this. You have them reversed. Try

Me.Building_Number = Me.Building_Name.Column(1)
 
Happy to help!

My daughter lived in England for several years and loved taking the train up to Scotland. I never made it during visits to her. Someday I'll make it up there!
 

Users who are viewing this thread

Back
Top Bottom