Welcome, Guest. Please Login.
04/20/24 at 07:09:03
News:
Home Help Search Login


Pages: 1
Send Topic Print
Sales Order Line Items (Read 1600 times)
Dynamic
Browser
*


I love YaBB 1G -
SP1!

Posts: 1
Sales Order Line Items
07/27/05 at 06:59:06
 
I am trying to write a report in Access using linked tables.  The link seems to be working with the following exception.  The report I am writing requires each of the line items on a sales order.  I have linked to what I believe is the correct table, BKARINVL, but the only info I am getting does not give me part numbers and descriptions past line 1 and repeats them multiple times.
 
I have noticed two things.  The field bkar.invl.key doesn't make it over to Access.  The other suspicion involves the BKAR.INVL.CNTR field.  Do I need to set up something special for this?
 
Thanks for your help!
Back to top
 
 
  IP Logged
aricon
Active Member
*****


Systems
Consulting-See
website for
products!

Posts: 1283
Gender: male
Re: Sales Order Line Items
Reply #1 - 07/27/05 at 15:54:44
 
You cannot see ANY of the "key" fields through ODBC.
 
If I remember correctly there is a line number field that you should be able to utilize to bring in the records. If that does not work - and it may not as I remember that my VB programmer had a TON of problems with this a few years ago creating some Access apps for a client, the way he got around it was to write some VBA code that found the part number field and compared it and brought in all records with that same part number and INV number (which is SO number in the table) - then I'm not sure what else may accomplish it.
Back to top
 
 

Sincerely,

Lorne Rogers
President
Aria Consulting & Implementers Ltd.
Phone: (780) 471-1430
Fax: (780) 471-4918
E-mail: lrogers@ariaconsulting.net
Email WWW   IP Logged
DetGalb
Browser
*




Posts: 4
Re: Sales Order Line Items
Reply #2 - 10/05/07 at 10:31:57
 
This looks like a primary key problem.
 
When you link the table for the first time, Access asks for the primary key fields (for you to mark them by clicking on them).  If you aren't accurate about this, when you look at the data in Access, you will think there are a lot of records that are duplicate.
 
For example, if you linked to a customer table, and chose state as the primary key, all the customers from Texas would appear to be identical records.
 
If you don't know the exact primary key field(s), you are better off not designating any in that initial linking to that table, then you don't get misleading results.
 
For that table, I think that the invoice number and one of the line number or counter fields would get you a true primary field, but choosing none is the safest way of connecting.
 
Hope that helps!
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print