CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Join

Print topic Send  topic

Author Message
Don Orrell
Posted: 07/09/2001, 2:55 PM

I am trying to use a join on a Label to show another field from the
relationed table. However, it appears to be a one-to-one relationship. I
need a zero-to-one relationship. In otherwords, the field is not required
so it may not contain any data. It seems the grid will not display the
record when this foreign key is missing. An example is like not having the
department in which a employee works in the EmpDir example. The grid will
not show the employee if no department key is in the employee table.

It there a work around without changing the structure of the database?

Don Orrell


CodeCharge
Posted: 07/09/2001, 3:20 PM

This is an issue because we used straight JOIN.
We have changed it by adding new JOIN options in the upcoming Upgrade to
version 2.0.

Until then, please use DLookup function.
For example include field employee_id on your form, then place this code in
the "Before Show" Event:
fldemployee_id = DLookup("employees","employee_name","employee_id=" &
fldemployee_id)

Adam



"Don Orrell" <dorrell@favoritenurses.com> wrote in message
news:9id993$lkf$1@news.codecharge.com...
> I am trying to use a join on a Label to show another field from the
> relationed table. However, it appears to be a one-to-one relationship. I
> need a zero-to-one relationship. In otherwords, the field is not required
> so it may not contain any data. It seems the grid will not display the
> record when this foreign key is missing. An example is like not having
the
> department in which a employee works in the EmpDir example. The grid will
> not show the employee if no department key is in the employee table.
>
> It there a work around without changing the structure of the database?
>
> Don Orrell
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.