![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have an access table that contains X number of records (X changes on a weekly basis). I have a recordset that counts the number of records in the table (X) and stores this number as a variable (FSPRecords). I have a second vairable that works out what 20% of the total number of records is (FSPLowest20). I have field in my table tbl_FSP_2010 called Flag and another called Total. Using VBA code, I need to order my table by the Total column and assign the Flag field to "true" for the first 20% of the records (the number of records stored in the variable FSPLowest20). Does anyone have any ideas on how this can be done please? Stop messing with recordsets and variables. Create and save a query that |
![]() |
| Thread Tools | |
| Display Modes | |
| |