Connecting Tech Pros Worldwide Help | Site Map

Matching Report with Form with data from Synchronized Combo Boxes

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 15th, 2006, 05:45 PM
Miguel
Guest
 
Posts: n/a
Default Matching Report with Form with data from Synchronized Combo Boxes

I have synchronized combo boxes linking Account Type with Customer
Names based on the template that Microsoft has in one of its samples
databases. There are the appropriate relationships between the Account
Type Table and the Customer Name Table based on the ID field, so it is
the ID field which is stored in the main table. However, in the form,
the Account Type and Customer Name are displayed because the column
width property has been changed to hide the other columns. But, when it
comes time to create reports, it is the ID field that comes up whereas
I need the text equivelent of the Account Type and Customer Name to be
displayed. How do I replicate what is on seen on the form in a report.
I suspect it would be done with a special query which would be the
source for the report, but do not know what method to use to get text
equivelent of each of the two fields.

Any assistance would be appreciated.

Miguel


  #2  
Old June 15th, 2006, 05:45 PM
egidio.caldeira@gmail.com
Guest
 
Posts: n/a
Default Re: Matching Report with Form with data from Synchronized Combo Boxes


Miguel wrote:[color=blue]
> I have synchronized combo boxes linking Account Type with Customer
> Names based on the template that Microsoft has in one of its samples
> databases. There are the appropriate relationships between the Account
> Type Table and the Customer Name Table based on the ID field, so it is
> the ID field which is stored in the main table. However, in the form,
> the Account Type and Customer Name are displayed because the column
> width property has been changed to hide the other columns. But, when it
> comes time to create reports, it is the ID field that comes up whereas
> I need the text equivelent of the Account Type and Customer Name to be
> displayed. How do I replicate what is on seen on the form in a report.
> I suspect it would be done with a special query which would be the
> source for the report, but do not know what method to use to get text
> equivelent of each of the two fields.
>
> Any assistance would be appreciated.
>
> Miguel[/color]


Hi Miguel,

Have u already try to use the code DLookup? I think it will do what u
need.

  #3  
Old June 15th, 2006, 06:15 PM
Miguel
Guest
 
Posts: n/a
Default Re: Matching Report with Form with data from Synchronized Combo Boxes

Dear Egidio,

I hadn't thought of using that function and will give it a go. Many
thanks.

Miguel
egidio.caldeira@gmail.com wrote:[color=blue]
> Miguel wrote:[color=green]
> > I have synchronized combo boxes linking Account Type with Customer
> > Names based on the template that Microsoft has in one of its samples
> > databases. There are the appropriate relationships between the Account
> > Type Table and the Customer Name Table based on the ID field, so it is
> > the ID field which is stored in the main table. However, in the form,
> > the Account Type and Customer Name are displayed because the column
> > width property has been changed to hide the other columns. But, when it
> > comes time to create reports, it is the ID field that comes up whereas
> > I need the text equivelent of the Account Type and Customer Name to be
> > displayed. How do I replicate what is on seen on the form in a report.
> > I suspect it would be done with a special query which would be the
> > source for the report, but do not know what method to use to get text
> > equivelent of each of the two fields.
> >
> > Any assistance would be appreciated.
> >
> > Miguel[/color]
>
>
> Hi Miguel,
>
> Have u already try to use the code DLookup? I think it will do what u
> need.[/color]

  #4  
Old June 15th, 2006, 07:05 PM
Cilla
Guest
 
Posts: n/a
Default Re: Matching Report with Form with data from Synchronized Combo Boxes


Miguel wrote:[color=blue]
> Dear Egidio,
>
> I hadn't thought of using that function and will give it a go. Many
> thanks.
>
> Miguel
> egidio.caldeira@gmail.com wrote:[color=green]
> > Miguel wrote:[color=darkred]
> > > I have synchronized combo boxes linking Account Type with Customer
> > > Names based on the template that Microsoft has in one of its samples
> > > databases. There are the appropriate relationships between the Account
> > > Type Table and the Customer Name Table based on the ID field, so it is
> > > the ID field which is stored in the main table. However, in the form,
> > > the Account Type and Customer Name are displayed because the column
> > > width property has been changed to hide the other columns. But, when it
> > > comes time to create reports, it is the ID field that comes up whereas
> > > I need the text equivelent of the Account Type and Customer Name to be
> > > displayed. How do I replicate what is on seen on the form in a report.
> > > I suspect it would be done with a special query which would be the
> > > source for the report, but do not know what method to use to get text
> > > equivelent of each of the two fields.
> > >
> > > Any assistance would be appreciated.
> > >
> > > Miguel[/color]
> >
> >
> > Hi Miguel,
> >
> > Have u already try to use the code DLookup? I think it will do what u
> > need.[/color][/color]

On a report you can also have a combo box to display the account type
text or the customer name instead of the id number. When it is
displayed in print the combo will not show up as a combo but will show
the text instead of the id. On the combo box make the combo have two
columns id and text, make the column size 0;3 for example so the text
appears and the id is hidden.

  #5  
Old June 22nd, 2006, 08:45 PM
Miguel
Guest
 
Posts: n/a
Default Re: Matching Report with Form with data from Synchronized Combo Boxes

Cilla:

Many thanks for your suggestion. I apologize for not responding sooner,
but was on holiday. It worked beautifully and has solved all my
problems.

Kindest regards,
Miguel
Cilla wrote:[color=blue]
> Miguel wrote:[color=green]
> > Dear Egidio,
> >
> > I hadn't thought of using that function and will give it a go. Many
> > thanks.
> >
> > Miguel
> > egidio.caldeira@gmail.com wrote:[color=darkred]
> > > Miguel wrote:
> > > > I have synchronized combo boxes linking Account Type with Customer
> > > > Names based on the template that Microsoft has in one of its samples
> > > > databases. There are the appropriate relationships between the Account
> > > > Type Table and the Customer Name Table based on the ID field, so it is
> > > > the ID field which is stored in the main table. However, in the form,
> > > > the Account Type and Customer Name are displayed because the column
> > > > width property has been changed to hide the other columns. But, when it
> > > > comes time to create reports, it is the ID field that comes up whereas
> > > > I need the text equivelent of the Account Type and Customer Name to be
> > > > displayed. How do I replicate what is on seen on the form in a report.
> > > > I suspect it would be done with a special query which would be the
> > > > source for the report, but do not know what method to use to get text
> > > > equivelent of each of the two fields.
> > > >
> > > > Any assistance would be appreciated.
> > > >
> > > > Miguel
> > >
> > >
> > > Hi Miguel,
> > >
> > > Have u already try to use the code DLookup? I think it will do what u
> > > need.[/color][/color]
>
> On a report you can also have a combo box to display the account type
> text or the customer name instead of the id number. When it is
> displayed in print the combo will not show up as a combo but will show
> the text instead of the id. On the combo box make the combo have two
> columns id and text, make the column size 0;3 for example so the text
> appears and the id is hidden.[/color]

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.