How to control records of NPL1 with condition (1 Viewer)

btamsgn

Member
Local time
Today, 11:18
Joined
Nov 8, 2010
Messages
51
Dear Everyone,
I have two issues as follows:
1. How to control records of NPL1 with condition each 10 records, etc...
(Thanks for your support "arnelgp")
TotalNPL1NPL2NPL3
10.66667​
AADCtC
10.66667​
AAeAtB
10.66667​
AAeBTA
10.66667​
AAeCSC
10.66667​
AAFAsB
10.66667​
AAFBSA
10.66667​
AAFCrC
10.66667​
AAGARB
10.66667​
AAGBRA
10.66667​
AAGCqC
10.66667​
ABDBtC
10.66667​
ABDCtB
10.66667​
ABeATA
10.66667​
ABeBSC
10.66667​
ABeCsB
10.66667​
ABFASA
10.66667​
ABFBrC
10.66667​
ABFCRB
10.66667​
ABGARA
10.66667​
ABGBqC
10.66667​
ACDAtC
10.66667​
ACDBtB
10.66667​
ACDCTA
10.66667​
ACeASC
10.66667​
ACeBsB
10.66667​
ACeCSA
10.66667​
ACFArC
10.66667​
ACFBRB
10.66667​
ACFCRA
10.66667​
ACGAqC
2. How to compare and list missing records from two tables (Table1 and Table2)
Pls find the attachment in your ref.
 

Attachments

  • Hmany_3.accdb
    616 KB · Views: 87

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:18
Joined
May 7, 2009
Messages
19,246
1. see modified code of XYZ() sub.
run Form1.
2. since Table1 has more records than Table2, Query2 will
list all records from Table1 Not in Table2.
 

Attachments

  • Hmany_3.accdb
    776 KB · Views: 84

btamsgn

Member
Local time
Today, 11:18
Joined
Nov 8, 2010
Messages
51
Hi arnelgp,
1. How to add recordcount into table1 and table2 in column "countgrp" with group "NPL1"
=> Table2: example: AA: 1-10, AB:1-10, etc...
=>Table1: example : AA: 1-17, AB: 1-15, etc...
2. How to add recordcount into table1 and table2 in column "count all"
=> Table2: example: countall : 1 -> 100
=>Table1: example : countall : 1 -> 1000
TotalNPL1NPL2NPL3countgrpcountall
10.66667​
AADCtC
1​
1​
AAeAtB
2​
2​
AAeBTA
3​
3​
AAeCSC
4​
4​
AAFAsB
5​
5​
AAFBSA
6​
6​
AAFCrC
7​
7​
AAGARB
8​
8​
AAGBRA
9​
9​
AAGCqC
10​
10​
ABDBtC
1​
11​
ABDCtB
2​
12​
ABeATA
3​
13​
ABeBSC
4​
14​
ABeCsB
5​
15​
ABFASA
6​
16​
ABFBrC
7​
17​
ABFCRB
8​
18​
ABGARA
9​
19​
ABGBqC
10​
20​
ACDAtC
1​
21​
ACDBtB
2​
22​
ACDCTA
3​
23​
ACeASC
4​
24​
ACeBsB
5​
25​
ACeCSA
6​
26​
ACFArC
7​
27​
ACFBRB
8​
28​
ACFCRA
9​
29​
ACGAqC
10​
30​
BACCtC
1​
31​
BADAtB
2​
32​
BADBTA
3​
33​
BADCSC
4​
34​
BAeAsB
5​
35​
BAeBSA
6​
36​
BAeCrC
7​
37​
BAFARB
8​
38​
BAFBRA
9​
39​
BBCBtC
1​
40​
BBCCtB
2​
41​
BBDATA
3​
42​
BBDBSC
4​
43​
BBDCsB
5​
44​
BBeASA
6​
45​
BBeBrC
7​
46​
BBeCRB
8​
47​
BBFARA
9​
48​
BBFBqC
10​
49​
 
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:18
Joined
May 7, 2009
Messages
19,246
i added Autonumber field both to Table1, Table2 and Output table.
then i made queries for the 3 tables (qryTable1, qryTable2, and qryOuput) that has Count.
 

Attachments

  • Hmany_3.accdb
    660 KB · Views: 85

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:18
Joined
May 7, 2009
Messages
19,246
ohh, there is additional "Count All"
 

Attachments

  • Hmany_3.accdb
    656 KB · Views: 164

Users who are viewing this thread

Top Bottom