PC Review


Reply
Thread Tools Rate Thread

Autofill another field in the form

 
 
Frank Situmorang
Guest
Posts: n/a
 
      13th Feb 2008
Hello,

My officersname of our church is filled by combobox based on a member query.
The coilumn count in this combox are 3 cosist of full name, last name and
memberID.
I want the memberID will be automatically filled in anther field of the same
table ( name of the field is OfficersID(in Indnonesian) . I have tried to put
in afterupdate of the officersname:
Private Sub NamaPel_AfterUpdate()
' Update No_URTAngt controls based on value selected in NamaPel combo box.
Me!NO_URTANGGOTA = Me![NamaPel].Column(3)
End Sub

but it wont work.

Could you please help us

With many thanks


--
H. Frank Situmorang
 
Reply With Quote
 
 
 
 
Dale Fye
Guest
Posts: n/a
 
      13th Feb 2008
The combo boxes columns are zero based, so if you have 3 columns, they are
numbered 0, 1, 2.

HTH
Dale
--
Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.



"Frank Situmorang" wrote:

> Hello,
>
> My officersname of our church is filled by combobox based on a member query.
> The coilumn count in this combox are 3 cosist of full name, last name and
> memberID.
> I want the memberID will be automatically filled in anther field of the same
> table ( name of the field is OfficersID(in Indnonesian) . I have tried to put
> in afterupdate of the officersname:
> Private Sub NamaPel_AfterUpdate()
> ' Update No_URTAngt controls based on value selected in NamaPel combo box.
> Me!NO_URTANGGOTA = Me![NamaPel].Column(3)
> End Sub
>
> but it wont work.
>
> Could you please help us
>
> With many thanks
>
>
> --
> H. Frank Situmorang

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofill field with entry into another field Judy Rose Microsoft Access 1 28th May 2008 11:15 PM
In a sub-form : when entering a field, verify if another field is true, if so show a MsgBox + set focus on another field Céline Brien Microsoft Access Forms 4 14th May 2008 03:30 PM
field autofill based on another field =?Utf-8?B?SmVubnlyZA==?= Microsoft Access Forms 2 25th Sep 2006 09:11 PM
Autofill of Text Form Field based on another Text Form Field =?Utf-8?B?QnJldHQgS2lucm9zcw==?= Microsoft Word Document Management 3 24th Nov 2005 04:49 AM
field in a form match another field in another form =?Utf-8?B?bGx1dmlh?= Microsoft Access Forms 3 21st May 2005 11:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 AM.