PC Review


Reply
Thread Tools Rate Thread

Updating fields

 
 
David Cleland
Guest
Posts: n/a
 
      12th Nov 2004
Hi

I have a problem. I have a form and I want to update a field based on the
value of another field. The problem is the value is the second column. Ie
the field is a loop showing two fields but I am to use the second column not
the first.

if Me!User (but the second column of the lookup) = Yes then etc ?

David


 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGV2bGlu?=
Guest
Posts: n/a
 
      12th Nov 2004
David,

Can you explain what you mean by "the field is a loop?" Are we talking
about a combo or list box with multiple columns? Or, are you concantinating
two fields into one?

"David Cleland" wrote:

> Hi
>
> I have a problem. I have a form and I want to update a field based on the
> value of another field. The problem is the value is the second column. Ie
> the field is a loop showing two fields but I am to use the second column not
> the first.
>
> if Me!User (but the second column of the lookup) = Yes then etc ?
>
> David
>
>
>

 
Reply With Quote
 
 
 
 
David Cleland
Guest
Posts: n/a
 
      12th Nov 2004
Sorry I meant the field is a lookup with two columns visible.

david

"Devlin" <(E-Mail Removed)> wrote in message
news:479D72A6-5550-41DA-9432-(E-Mail Removed)...
> David,
>
> Can you explain what you mean by "the field is a loop?" Are we talking
> about a combo or list box with multiple columns? Or, are you
> concantinating
> two fields into one?
>
> "David Cleland" wrote:
>
>> Hi
>>
>> I have a problem. I have a form and I want to update a field based on the
>> value of another field. The problem is the value is the second column. Ie
>> the field is a loop showing two fields but I am to use the second column
>> not
>> the first.
>>
>> if Me!User (but the second column of the lookup) = Yes then etc ?
>>
>> David
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?RGV2bGlu?=
Guest
Posts: n/a
 
      12th Nov 2004
David,

I assume that you are talking about a combo box on a form. To reference
another column besides the bound column you simply specify the column index.

Example:

MyVariable = Me.MyComboBox.Column(1)

So based on your question you would place this code in the AfterUpdate event
for MyComboBox.

Example:

Sub MyComboBox_AfterUpdate()
MyVariable = nz(Me.MyComboBox.Column(1),"")
End Sub

I hope this helps. Good luck!

"David Cleland" wrote:

> Hi
>
> I have a problem. I have a form and I want to update a field based on the
> value of another field. The problem is the value is the second column. Ie
> the field is a loop showing two fields but I am to use the second column not
> the first.
>
> if Me!User (but the second column of the lookup) = Yes then etc ?
>
> David
>
>
>

 
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
Fields within fields that cross-ref to other fields and do not upd Marc Trumpi Microsoft Word Document Management 1 9th Jul 2008 03:27 PM
How to convert text fields to numeric fields without losing data in text fields. Frank Microsoft Access Form Coding 24 19th Jan 2008 12:22 PM
Updating fields, Adding Fields? =?Utf-8?B?Q29kZSBBZ2VudA==?= Microsoft Access 2 22nd Mar 2007 12:15 AM
Re: Updating fields in one table to from fields in another table John Vinson Microsoft Access Queries 3 25th Jan 2007 12:41 PM
Re: Updating fields in one table to from fields in another table Jason Lepack Microsoft Access Queries 0 24th Jan 2007 06:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 AM.