Talk About Network

Google





Software > Access General > Dlookup not wor...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 97459 of 98261
Post > Topic >>

Dlookup not working

by Simon <S.Dickson@[EMAIL PROTECTED] > Dec 1, 2008 at 01:56 PM

I have writen some code that will email customer with the products
they have ordered using tblOrderProducts

strItemsOrdered = strItemsOrdered & "Product CodeNotworking   : " &
DLookup("[ProductCode]", "tblOrderProduct", "[OrderNumber] =" &
("OrderNumber")) & vbCrLf & "Product Code   : " & CRS1.Fields
("ProductCode") & vbCrLf & "Product Name   : " & CRS1.Fields
("ProductName") & vbCrLf & "Qty            : " & CRS1.Fields
("Quantity") & vbCrLf & vbCrLf


The output is

Product CodeNotworking   : T1GN
Product Code   : C11
Product Name   : LCD TV
Qty            : 2


Product CodeNotworking   : T1GN
Product Code   : A8
Product Name   : Digital Camera
Qty            : 2

Product CodeNotworking   : T1GN
Product Code   : FREE
Product Name   : Free Gift
Qty            : 1

As u can seee Product CodeNotworking display T1GN on every item, this
should be the same as 'Product Code' also this customer has not
ordered a product with T1GN product code so not sure why its dispaying
this

Could your let me know what would be wrong

Thanks
 




 3 Posts in Topic:
Dlookup not working
Simon <S.Dickson@[EMAI  2008-12-01 13:56:34 
RE: Dlookup not working
=?Utf-8?B?Q2xpZmZvcmQgQmF  2008-12-01 14:52:07 
Re: Dlookup not working
John W. Vinson <jvinso  2008-12-01 17:43:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 12:33:00 PST 2009.