Jump to content

View record using 'next' and 'previews' button

- - - - -

  • Please log in to reply
5 replies to this topic

#1
triple7

triple7

    Newbie

  • Members
  • Pip
  • 3 posts
On my project, I use two button to view the record of my database,
but I have problem here.
When I press the next button, the data that showed was not in the next record of my database. It can't view the next record.
Help me please..how to fix it...
give me the source pleasee.....


Thanks before... :)

#2
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
There is just far to little information here,
what are you using to connect to the database?

I mean presumably you're pulling the records from the database and storing them somewhere, like possibly in a data table or something,

can you post your code first?

#3
triple7

triple7

    Newbie

  • Members
  • Pip
  • 3 posts
I use oleDb connection in C#.Net 2010, and use Microsoft Access for saving the data

the design form is like this
http://sixthsense.uc.../Untitled-1.jpg

when I press the 'next' button, the pic box show the pic in the next record..and when I press the 'back' button, the pic box show pic in the previews record..

could you help me?

#4
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
I can! =)

OleDB is the ADO.NET 'Data Provider',
its kinda like a driver

So you have the ado.net subsystem, which has a data source. Your OleDB is the connector to that data source. Once the data comes in.. that's what I'm concerned about.

Are you using an OleDBDataReader? or are you using DataAdapters ?

#5
triple7

triple7

    Newbie

  • Members
  • Pip
  • 3 posts
I'm using OleDbDataReader..
could you give me the source?
please..

#6
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
I could, except I dont think you told me what you were trying to connect to. Here is a great site. ConnectionStrings.com - Forgot that connection string? Get it here!

The idea is to find the database type your connecting to, and hit that link. Then scroll down till you find the X OLE DB PROVIDER connection string.

Another great ADO Connection Strings site is Connection Strings

Which might actually be easier to find the connection string your looking for. Anyways, let me know.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users