Strange Behaviour

rob_andy

New Member
Joined
Mar 12, 2003
Messages
33
I'm using a linked table from Opera (Financial Package) that has around 4000 records. Now I do'nt need all the data so I tried to setup a query that only displayed records with an order number starting with C:

exp: IIf((Left([d_ihead]![ih_sorder],1)="C"),Trim(Right([d_ihead]![ih_sorder],((Len([d_ihead]![ih_sorder])-1)))),"")

criteria: <>""


So it doesn't show any that don't fit the above criteria. However I am getting some that are null still coming up in the query. Any ideas?

Thanks in advance. R
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try
IIf(Left([d_ihead]![ih_sorder],1)="C",True,False)
and then filter for True.

HTH


Peter
 
Upvote 0
This sounds wierd but that does the same as my original, it does filter some falses out but some still get back through. R
 
Upvote 0
Is this the only filter in the Query? just wondering if they could be creeping by on an OR somewhere.

Peter
 
Upvote 0
Heres the SQL:

SELECT rInvoiceHead.ih_sorder, IIf(Left([rInvoiceHead]![ih_sorder],1)="C",True,False) AS Test, rInvoiceHead.ih_account, rInvoiceHead.ih_delad1, rInvoiceHead.ih_delad2, rInvoiceHead.ih_addr3, rInvoiceHead.ih_delad4, rInvoiceHead.ih_delad5, rInvoiceHead.ih_deladpc
FROM rInvoiceHead
WHERE (((IIf(Left([rInvoiceHead]![ih_sorder],1)="C",True,False))=True));

Thanks R
 
Upvote 0
I cant see anything wrong with it :(
Are you getting "True" on the test column but blank on your ih_sorder column?

Peter
 
Upvote 0

Forum statistics

Threads
1,221,566
Messages
6,160,524
Members
451,655
Latest member
rugubara

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top