Professional forum and technical support for computerIT pros for Microsoft Access Modules VBA Coding. Bank Money Transfer Hacking Software. Includes problem solving collaboration tools. What is a query and what does it do A query is a set of instructions that describes what data to retrieve from a given data source or sources and what shape and. Union vs. Union All Query Syntax for SQL Server and Microsoft Access Union Query Overview. The purpose of the SQL UNION and UNION ALL commands are to combine the. This article describes how to define relationships in a Microsoft Access database. The article includes the following topics What are table relationshipsThat is not wat I thought that would happen. Solve this by using a temporary table saveing the recordnumbers and keys or an extra field in the table. SELECT ID, Points, Record. Number. Off. IdID AS Recordnumber. FROM Team ORDER BY ID ASC, Points DESC. Dim Previous. ID As Long. Dim Previous. Record. Number As Long. Dim Time. Last. ID As Date. Public Function Record. Number. Off. IDID As Long As Long. ID is sortgroup identity. Reset if last call longer dan nn seconds in the past. If Time Time. Last. ID 0. 0. Then 0,0. Previous. ID 0. Previous. Record. Number 0. If ID lt Previous. ID Then. Previous. Record. Number 0. Previous. ID ID. Previous. Record. Number Previous. Record. Number 1. Record. Number. Off. ID Previous. Record. Number. Time. Last.