PC Review


Reply
Thread Tools Rate Thread

Auto File upon condition

 
 
tryn2learn
Guest
Posts: n/a
 
      16th Apr 2009
I'm trying to set up a form that once a certain job name is entered the
client and group attached will automatically fille in. is this possible>

Job name Client Group
a011195 ABC Letters

Once the job is entered I would like the (ABC) and (Letters to automaticlly
be filled in)

my coding knowlege is limited...

Thank you,

 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      16th Apr 2009
You don't mention this, so I'll assume you already have "ABC" and "Letters"
associated with "a011195" in some table in your database.

A couple thoughts...

First, if you use a textbox, you will force your users to know/remember a
perhaps-meaningless "job name" (i.e., "a011195"). This is user-unfriendly.

Instead, if you used a combobox that listed jobs (and suitable identifying
information, like, say, Client and Group), you could allow your users to
SELECT the job, rather than remember/enter.

Next, you don't mention it, so it isn't clear if you are adding [Client] and
[Group] on that form in order to get them added to the table 'behind' that
form. If so, stop it! If you already know which [Client] and [Group] is
associated with a [job number], there's no need to duplicate it in another
table.

So, if you aren't trying to "duplicate" those two, merely display their
values (in unbound textboxes ... you don't mention this, either), you can
easily accomplish this by having the AfterUpdate event of the combobox
'push' the values into those unbound textboxes. In the combobox's
AfterUpdate event, your code would look something like:

Me!txtClient = Me!cboJobNumber.Column(1)
Me!txtGroup = Me!cboJobNumber.Column(2)

where you substitute your names for the respective controls, and use the
zero-based count of columns in your combobox's source to "feed" into the
textboxes (e.g., if the query that feeds your combobox has three fields,
[JobNumber], [Client], [Group], then "0" refers to the first column -
[JobNumber] - and "1" refers to the second column - [Client] - and so on...)

Regards

Jeff Boyce
Microsoft Office/Access MVP

"tryn2learn" <(E-Mail Removed)> wrote in message
news:F4FC3BDC-7D3A-4F97-881E-(E-Mail Removed)...
> I'm trying to set up a form that once a certain job name is entered the
> client and group attached will automatically fille in. is this possible>
>
> Job name Client Group
> a011195 ABC Letters
>
> Once the job is entered I would like the (ABC) and (Letters to
> automaticlly
> be filled in)
>
> my coding knowlege is limited...
>
> Thank you,
>



 
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
How do I auto hide a row if a condition isnt met? Brian Microsoft Excel Misc 1 3rd Apr 2009 09:32 PM
auto filter with condition =?Utf-8?B?UktT?= Microsoft Excel Misc 1 25th Oct 2007 08:11 AM
Assign auto numbers based on a condition =?Utf-8?B?TGlzYQ==?= Microsoft Excel Worksheet Functions 8 19th Oct 2006 02:46 PM
Display Auto-Filter Condition =?Utf-8?B?TWFyaw==?= Microsoft Excel Misc 1 5th Mar 2004 06:20 PM
auto reporting of error condition Cliff Windows XP Internet Explorer 2 8th Feb 2004 11:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:00 PM.