Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / March 2005

Tip: Looking for answers? Try searching our database.

code information in a form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
filo666 - 29 Mar 2005 19:13 GMT
Hi, I have a form with a code text box on it, I want that when someone put a
code in the texbox, in another texbox appears the description of the code,
something like this:

the user tipe in one text box:          In the other text box appears
automatically:
                    2                      -->                       3X5
Polypropilen Bag
                    60                    -->                       15X25
Polypropilen Bag
It's important to say that I have 1250 different codes and I have allready
typed all the codes with his description; The form is related to a query and
code is one column of one table where are asked the code, amount of pieces
and date of sale, but description is other column in other table (that cant
be edited).

PD, without using subforms .
tks
Steve Schapel - 29 Mar 2005 19:29 GMT
Filo,

Include the "other table' in the query that your form is based on,
joined to the main table on the Code field, and put the description
field into the query.  Then you can represent this field on the form
with a textbox, and then set the Enabled property of the textbox to No
and the Locked property to Yes so it can't be editied.  Then, when the
Code is entered on the form, the Description should automatically be
displayed.

Signature

Steve Schapel, Microsoft Access MVP

> Hi, I have a form with a code text box on it, I want that when someone put a
> code in the texbox, in another texbox appears the description of the code,
[quoted text clipped - 14 lines]
> PD, without using subforms .
> tks
filo666 - 29 Mar 2005 20:55 GMT
steve: I could send you my file if you want????

> Filo,
>
[quoted text clipped - 24 lines]
> > PD, without using subforms .
> > tks
Steve Schapel - 30 Mar 2005 00:31 GMT
Ok, why not.  Zip it up and email to me, and indicate which form and
tables we are talking about.  Remove the .ns from the return email address.

Signature

Steve Schapel, Microsoft Access MVP

> steve: I could send you my file if you want????
>
[quoted text clipped - 26 lines]
>>>PD, without using subforms .
>>>tks
Albert D. Kallal - 29 Mar 2005 19:32 GMT
Build a combo box that returns the codes as the 1st column, and the
description as the 2nd column

Then, simply for ht data source of the 2nd text box on your form, go:

=([combo18].[column](1))

The beauty of this system is that you don't have to copy, or even store the
descritpon text..and this is why relatonal databases are so cool!!

Signature

Albert D. Kallal   (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
http://www.members.shaw.ca/AlbertKallal

filo666 - 29 Mar 2005 20:29 GMT
ohhh albert, you always solve my problems, thanks.

also thanks to steve, but I have alrready tried what you  typed and It
didn't work

> Build a combo box that returns the codes as the 1st column, and the
> description as the 2nd column
[quoted text clipped - 5 lines]
> The beauty of this system is that you don't have to copy, or even store the
> descritpon text..and this is why relatonal databases are so cool!!
Steve Schapel - 29 Mar 2005 20:46 GMT
Filo,

I am not sure what "didn't work" means, but what I suggested is standard
procedure, and normally there is not problem with it.

Signature

Steve Schapel, Microsoft Access MVP

> also thanks to steve, but I have alrready tried what you  typed and It
> didn't work
filo666 - 29 Mar 2005 20:35 GMT
Ah, but I have a small detail, I want to use my form in datasheet view, when
I type the code (or select the code from the combo box) all the other code
records are changed¡¡¡

> Build a combo box that returns the codes as the 1st column, and the
> description as the 2nd column
[quoted text clipped - 5 lines]
> The beauty of this system is that you don't have to copy, or even store the
> descritpon text..and this is why relatonal databases are so cool!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.