Re: C# + Access Database Problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



ATXTech wrote:
I am using a Access created database with a program I wrote in C# to
create and track helpdesk tickets. I store basic stuff like customer
name, number, issue, tech assigned, etc. with in the database.

**PROBLEM**
The database worked fine in saving and displaying records until it
reaced the 26th record. When ever you open the ticket program, it
retrieves the data from the database on the server and shows the last
entry in the database first. For example the tickets show like this:
28,27,26,1,2,3,4...How do I get it to show the last ticket entered at
the end. The actual database when opened in Access looks fine and
displays the tickets in the order they where entered
(1,2,3...25,26,27). It's only when the "program" displays the records
does it appear the way it does. It's like it reads the last records
first and then the first one on down. Please help!! Thank you!

It sounds like you don't have your result set sorted. Saying how to help is
hard since I don't know how exactly you retrieved your result set. If based
off of the base table directly, you need to specify an index to use for
ordering. If based off of a query, you'd want to have an ORDER BY in your
query string. etc.

--
Gordon Smith (eMVP)
-- Avnet Applied Computing Solutions


.



Relevant Pages

  • Re: PIN System
    ... > digits mean 1:1000000 chance of being robbed). ... you need an online connection to the database ... > from the points where the tickets are to be used. ...
    (sci.crypt)
  • Re: integer sequence randomization
    ... I am facing the following problem: I have a database filled with ... thousands of records (tickets) distinguished by ther ID. ... a fairly common method used for user authentication when people sign ... website says go to this page to validate you signed up for an account ...
    (sci.crypt)
  • Re: integer sequence randomization
    ... thousands of records (tickets) distinguished by ther ID. ... this is getting slower and slower as the database is ... You do not say anything about the length, but simply encrypting the IDs ...
    (sci.crypt)
  • database suggestions
    ... Over time the techs have designed electronic tickets and timesheets in excel. ... So one issue would be to update the main database when ... And be able to retrieve data. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Datatable retrieving Null values - Im stuck !
    ... null value returned by the database. ... > I have a stored procedure on my SQL database that retrieves a wide range ... > particular field that cost calculation changes.... ...
    (microsoft.public.dotnet.framework.aspnet)