Working on fixing an Access Database
Stores and reports used/unused phone extensions
Table looks like this:
TblExtensions
No | Switch | Use | BroadUse
290 | ABC | DEF GHI | JKL/MNO
291 | ABC | DEF GHI | JKL/MNO
292 | ABC | DEF GHI | JKL/MNO
293 | ABC | DEF GHI | JKL/MNO
294 | ABC | DEF GHI | JKL/MNO
295 | ABC | DEF GHI | JKL/MNO
296 | ABC | DEF GHI | JKL/MNO
298 | ABC | DEF GHI | JKL/MNO
299 | ABC | DEF GHI | JKL/MNO
300 | OPEN | OPEN | OPEN
301 | OPEN | OPEN | OPEN
302 | OPEN | OPEN | OPEN
303 | OPEN | OPEN | OPEN
304 | OPEN | OPEN | OPEN
305 | OPEN | OPEN | OPEN
306 | ABC | DEF GHI | JKL/MNO
307 | ABC | DEF GHI | JKL/MNO
308 | ABC | DEF GHI | JKL/MNO
I need to create a query that outputs data in a table or report like this:
NoRange | Switch |Use | BroadUse
290-299 | ABC | DEF GHI | JKL/MNO
300-305 | OPEN | OPEN | OPEN
306-308 | ABC | DEF GHI | JKL/MNO
Simple Min/Max calc for ranges won't work because it'll ignore OPEN spots within the table and visa versa.
Need a select query to identify the start and end of contiguous ranges of extensions with the same Switch/Use/BroadUse/Comments, without modifing the table structure as I don't want to mess with the user interface and table update queries.
If anyone has any idea where to start, that would be immensly helpful, as I'm still pretty new to SQL and Access. This database has been around for many years and the person who made it either never figured this out or didn't bother to notice the problem.
Thanks!
Stores and reports used/unused phone extensions
Table looks like this:
TblExtensions
No | Switch | Use | BroadUse
290 | ABC | DEF GHI | JKL/MNO
291 | ABC | DEF GHI | JKL/MNO
292 | ABC | DEF GHI | JKL/MNO
293 | ABC | DEF GHI | JKL/MNO
294 | ABC | DEF GHI | JKL/MNO
295 | ABC | DEF GHI | JKL/MNO
296 | ABC | DEF GHI | JKL/MNO
298 | ABC | DEF GHI | JKL/MNO
299 | ABC | DEF GHI | JKL/MNO
300 | OPEN | OPEN | OPEN
301 | OPEN | OPEN | OPEN
302 | OPEN | OPEN | OPEN
303 | OPEN | OPEN | OPEN
304 | OPEN | OPEN | OPEN
305 | OPEN | OPEN | OPEN
306 | ABC | DEF GHI | JKL/MNO
307 | ABC | DEF GHI | JKL/MNO
308 | ABC | DEF GHI | JKL/MNO
I need to create a query that outputs data in a table or report like this:
NoRange | Switch |Use | BroadUse
290-299 | ABC | DEF GHI | JKL/MNO
300-305 | OPEN | OPEN | OPEN
306-308 | ABC | DEF GHI | JKL/MNO
Simple Min/Max calc for ranges won't work because it'll ignore OPEN spots within the table and visa versa.
Need a select query to identify the start and end of contiguous ranges of extensions with the same Switch/Use/BroadUse/Comments, without modifing the table structure as I don't want to mess with the user interface and table update queries.
If anyone has any idea where to start, that would be immensly helpful, as I'm still pretty new to SQL and Access. This database has been around for many years and the person who made it either never figured this out or didn't bother to notice the problem.
Thanks!