Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. colinb

    Finding TOP values without resorting to cursors!

    Thankyou all for your replies. I have decided to go with gmmastros's suggestion. This is because the other two solutions do not always produce the desired effect: set nocount on declare @tbl table( tbl_id int IDENTITY NOT NULL PRIMARY KEY, PersonCode varchar(6) NOT NULL, DataValue int)...
  2. colinb

    Finding TOP values without resorting to cursors!

    This may seem a very simple question, but I am trying to find a way to list say the top 5 values (or less if fewer exist) for each person in a table witout having to resort to cursors. Here is a simplified version of the problem: CREATE TABLE tbl1 ( id int IDENTITY NOT NULL PRIMARY KEY...
  3. colinb

    Can't close my application

    Code for DotNetDoc: Private Sub Timer1_Tick(...) sec += 1 Call SetDateAndTimeDisplay() 'this shows the current date 'and time on the form If sec >= REFRESH_INTERVAL Then sec = 0 Call ClearControls() 'clears the txt and cbo boxes Call...
  4. colinb

    Can't close my application

    I have written a small VB.NET application that accesses an mdb database and then dynamically creates controls based upon it's values. A timer runs and refreshes the screen every so often by clearing the current controls and recreating them. When I run it, unless I close it soon afterwards, it...
  5. colinb

    Importing Data To Existing Records

    There are several ways to do this but the safest is to import the spreadsheet into Access as a table (make sure the spreadsheet is in a suitable table-like format first), by doing New|Import Table. Then make sure the datatypes of the imported table are the same as your existing table. Then...
  6. colinb

    Active X -Calendar

    Try putting a default value in the Table for the [DeliveryDate] field of, say Date() If I have understood your question this should work.
  7. colinb

    Crosstab query to report

    I have devised a workaround that I regularly use: Firstly, forget about Crosstabs. Say you want to return Columns A, B and C where B has no entries but you want the report to display B=0. In your base query 'force' the desired columns to return a value like so: B:IIf([field] In...
  8. colinb

    Expression for mailing list

    Here's a slightly simpler (if more limiting) possibility: In your query use this in place of forename fnms:iif(max(fnm)=min(fnm),max(fnm), max(fnm) & " and " & min(fnm)) The only trouble with this is you can only have a maximum of two names per household. Enough in most cases I...
  9. colinb

    Unwanted Multiple Copies in Reports

    Does the number of copies match the number of rows returned by the query? If so, then you probably need to move your 'aggregate' functions into a group footer, and hide the detail by setting it's height to 0.
  10. colinb

    Connect to .mdb or sql server option?

    Could you not just have both sets of tables permanently linked, and prefix the Access ones with, say mdb_ and the SQL Server ones with say sql_? That way the Queries could be built on-the-fly to connect to the selected tables. This also simplifies the syncronising of the two sets of tables.

Part and Inventory Search

Back
Top