If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
#error results in unmatched records of outer join
Doing a simple query where I join a master table with all records and a query
that creates a subset of data. When I look at the result set after the join, the master table records that aren't present in the subset have #error for that column. My environment is Access 2002 on Xp Pro with all os and office updates current. I've been doing this for some time and this is the first time I've seen this. Thanks in advance for you help. Steve |
#2
|
|||
|
|||
#error results in unmatched records of outer join
Hi Steve,
Is that column a calculation? Warm Regards, Crystal Microsoft Access MVP 2006 * Have an awesome day remote programming and training strive4peace2006 at yahoo.com * Steve wrote: Doing a simple query where I join a master table with all records and a query that creates a subset of data. When I look at the result set after the join, the master table records that aren't present in the subset have #error for that column. My environment is Access 2002 on Xp Pro with all os and office updates current. I've been doing this for some time and this is the first time I've seen this. Thanks in advance for you help. Steve |
#3
|
|||
|
|||
#error results in unmatched records of outer join
Yes, it is.
InitialWI: Val((Left([expression],Len([expression])-(Len([expression])-InStr(1,[expression]," ")+1)))/100) "strive4peace" "strive4peace2006 at yaho" wrote: Hi Steve, Is that column a calculation? Warm Regards, Crystal Microsoft Access MVP 2006 * Have an awesome day remote programming and training strive4peace2006 at yahoo.com * Steve wrote: Doing a simple query where I join a master table with all records and a query that creates a subset of data. When I look at the result set after the join, the master table records that aren't present in the subset have #error for that column. My environment is Access 2002 on Xp Pro with all os and office updates current. I've been doing this for some time and this is the first time I've seen this. Thanks in advance for you help. Steve |
#4
|
|||
|
|||
#error results in unmatched records of outer join
Hi Steve,
wrap field references with NZ (convert Null from nothing to something) in case they are blank ie: Left ( nz([expression]), Len( nz([expression]) ) -Len( nz([expression]) ) ) .... if that doesn't work, then tell me the SQL of your query and I will give you another method Warm Regards, Crystal Microsoft Access MVP 2006 * Have an awesome day remote programming and training strive4peace2006 at yahoo.com * Steve wrote: Yes, it is. InitialWI: Val((Left([expression],Len([expression])-(Len([expression])-InStr(1,[expression]," ")+1)))/100) "strive4peace" "strive4peace2006 at yaho" wrote: Hi Steve, Is that column a calculation? Warm Regards, Crystal Microsoft Access MVP 2006 * Have an awesome day remote programming and training strive4peace2006 at yahoo.com * Steve wrote: Doing a simple query where I join a master table with all records and a query that creates a subset of data. When I look at the result set after the join, the master table records that aren't present in the subset have #error for that column. My environment is Access 2002 on Xp Pro with all os and office updates current. I've been doing this for some time and this is the first time I've seen this. Thanks in advance for you help. Steve |
#5
|
|||
|
|||
#error results in unmatched records of outer join
Thanks so much for you help. I'm having a tough time getting into this
website and am not getting notifications of replies. I tried to implement your suggestion and I'm still getting the #error in the second query. Anyway I'm including the sql for the queries I'm having the issues with. First query: SELECT dbo_AC_ECONOMIC.PROPNUM, (Val((Left(nz([Expression]),Len(nz([Expression]))-(Len(nz([Expression]))-InStr(1,nz([Expression])," ")+1)))/100)) AS [Initial WI] FROM dbo_AC_ECONOMIC WHERE (((dbo_AC_ECONOMIC.KEYWORD)="net") AND ((dbo_AC_ECONOMIC.SECTION)=7) AND ((dbo_AC_ECONOMIC.QUALIFIER)=[forms]![frmsaverun].[txtqual])); Second query: SELECT dbo_AC_PROPERTY.PROPNUM, dbo_AC_PROPERTY.ENTITY, [WC Initial WI].[Initial WI], dbo_AC_PROPERTY.RUN FROM dbo_AC_PROPERTY LEFT JOIN [WC Initial WI] ON dbo_AC_PROPERTY.PROPNUM = [WC Initial WI].PROPNUM WHERE (((dbo_AC_PROPERTY.RUN)="y")); |
#6
|
|||
|
|||
#error results in unmatched records of outer join
Hi Steve,
What does [Expression] represent? surely this is not a fieldname... Warm Regards, Crystal Microsoft Access MVP 2006 * Have an awesome day remote programming and training strive4peace2006 at yahoo.com * Steve wrote: Thanks so much for you help. I'm having a tough time getting into this website and am not getting notifications of replies. I tried to implement your suggestion and I'm still getting the #error in the second query. Anyway I'm including the sql for the queries I'm having the issues with. First query: SELECT dbo_AC_ECONOMIC.PROPNUM, (Val((Left(nz([Expression]),Len(nz([Expression]))-(Len(nz([Expression]))-InStr(1,nz([Expression])," ")+1)))/100)) AS [Initial WI] FROM dbo_AC_ECONOMIC WHERE (((dbo_AC_ECONOMIC.KEYWORD)="net") AND ((dbo_AC_ECONOMIC.SECTION)=7) AND ((dbo_AC_ECONOMIC.QUALIFIER)=[forms]![frmsaverun].[txtqual])); Second query: SELECT dbo_AC_PROPERTY.PROPNUM, dbo_AC_PROPERTY.ENTITY, [WC Initial WI].[Initial WI], dbo_AC_PROPERTY.RUN FROM dbo_AC_PROPERTY LEFT JOIN [WC Initial WI] ON dbo_AC_PROPERTY.PROPNUM = [WC Initial WI].PROPNUM WHERE (((dbo_AC_PROPERTY.RUN)="y")); |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
outer join with multiple fields | Arden | Running & Setting Up Queries | 2 | May 24th, 2006 04:15 PM |
table question | Jessica | General Discussion | 5 | September 22nd, 2005 12:41 AM |
Relationship feature/bug/accident | Peter Danes | Using Forms | 22 | September 11th, 2005 11:15 PM |
Deleting Outer Join Records | Suzie Raboin | Running & Setting Up Queries | 4 | May 9th, 2005 09:21 PM |
urgent ! outer join not picking all records | questy | Running & Setting Up Queries | 10 | April 29th, 2005 11:29 PM |