There are 8 tables named Group1 to Group 8
Each one has Same Fields
Ex:
ItemNo,Description,Required
Each Group may not have same number of records.
Some has 5 Item some 50 or more.
Another Table is there called "Main"
This will accept Duplicate Itemno.
Which is having Itemno,Description quantity,Price.
&
The last table is Called "Final",where Itemno is Indexed,
Which has,ItemNo,Description,Instock,Outfor Fields
Where ItemnoIndex mask is like "Yes,No Duplicates" under Itemno field.
That means this "Final" Table will not accept Duplicate Itemno.
Problem is:
How do I get to read records Groupwise? in one button Click.
& display them in MsFlexigrid or in a Combobox?
If this is possible then show the total count of the items in order.
EX:
Item1=5
Item2=3
etc.
Apart from this :
It is needed to go to each Group & see how many items are there & look at the "Required" Field , then Go to the "Final" table match the item ,.deduct the Instock as per Required Field thus finishing one by one all the Groups.
Then adding For107 to the Outfor Field.
Remember all the 8 Tables will be checked for Itemno,& Required.
This is more of a database question than a VB one isn't it? What databse are you using?
If I was doing it, I think I'd create a temporary table which contains records from the 8 group tables where the item no matched your parameter, and then join this to the Final table, and use this as the recordset for the grid.
What database are you using? Do you want the grid to be bound or unbound?
Dear JP,
I am Using MsAccess as Database.
there is a small glitch to create a temp table
coz some items are common.
As you can see from the database.
no they are all unbound.
I think somewhere SQL Query is required.
But now idea how to implement it.
Do Reply
Rahul
Thanks for the reply, But I feel that you Overlooked the Common Field.
This common Field is logical(Yes/No)
There are some components which are common
Coz virtually there are 16 Groups
Namely:
107Group1 to 107Group8
&
82Group1 to 82Group8
See the DB you'll understand.
Okay let me give you the entire project.
See & modify please.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.