Results 1 to 17 of 17

Thread: Scroll through records?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253

    Question

    Hi everyone! I have a data entry form in my program and I would like to be able to scroll through the records from the Access Table. Well I'm using the ADO Data Control 6.0 (SP3)(OLEDB), but looks like it is unenabled on the form and will not doing anything when I click on the arrows. Am I using the wrong component or is it something else? Thanks for any help.

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Click the link below. This might be of help.

    http://msdn.microsoft.com/library/de...atacontrol.htm

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253

    Question

    Shafee

    Do you think the reason the ADO control is not working is because the form a child form off of a MDI Form? Just wondering.

  4. #4
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    You will have to bind a control to the ADO data control. Then only it will be enabled. If the data control and the other controls are in different forms you cannot do this.

  5. #5
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    You will have to bind a control to the ADO data control. If the data control and the other controls are in different forms you cannot do this.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253
    ok be patient with me Shafee, but I don't understand what you mean by bind other controls??

  7. #7
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Here is what you have to do.

    1. Draw an ADO data control on the form.
    2. Draw a text box.
    3. Right click ADO data control and click ADODC Properties.
    4. In the resulting dialog box, select Use Connection String and then click Build.
    5. Another dialog box appears. Click the Provider tab.
    6. Select Microsoft Jet 4.0 OLE DB Provider from the list which appears and then click next.
    7. Enter the path and filename of the database you want to access and then click Test Connection. A message appears telling you that the test connection succeeded.
    8. Click OK.

    Now the data control is ready. The next thing you have to do is to bind the text box to the data control. To do this:

    1. Set the Data Source property to the name of the ADO data control.
    2. Set the Data Field property.

    Now you will be able to navigate through the database.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253
    I tried going to the data source for the textbox but when I click on it the program flickers through all the forms and does not allow me to enter a data source.
    sorry!!

  9. #9
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    For that both the ADO data control and the textbox should be on the same form.

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253
    They are on the same form. I don't understand it seems to be an easy tasked but for some reason it's not working!

  11. #11
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    I forgot one step in setting up the data control. You must set the RecordSource property. To do this, right click the ADO data control and click ADODC Properties. In the dialog box which appears, click the Recordsource tab. Select adCmdTable as the command type, and select the table in the next drop down box. Click ok and then try to change the Data Source property of the text box. It should work now.

  12. #12
    Guest

    Angry Jeffro........hmmmm that name sounds vaguely familiar

    Ok do not data bind your controls...called early binding by the way.....it will lead to tears honest. Use code to populate your controls, if need an example will email you a small training app we have which uses DAO, but is not too hard to modify to ADO.

    Why shouldn't you use early data binding, post as a question and get ready for a fire storm.

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253
    Hey Jethro,

    sorry our names look the same. I would appreciate it you would email the training app. Thanks alot!

  14. #14
    Guest

    Thumbs up jeffro dude no problems will email it at you

    Only problem is our office is packed up at the moment for a move, so don't have PCs etc....will be setup on Monday/Tuesday next week, (bloody olympics), and will send to you then.

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253

    Talking

    Hey thanks a lot Jethro I appreciate the offer!!!

  16. #16
    Guest

    Unhappy Ok should have the office sorted tonite

    It has been a b****h of a move but am almost setup so we email in the next few days.

  17. #17

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253

    Talking

    Hey Jethro,

    That is ok take your time. I'm kind of working on a problem with Crystal Reports.

    Thanks again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width