Results 1 to 7 of 7

Thread: Errors during load

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    150

    Errors during load

    hi...

    i have this application which was working fine, but now when i'm trying to open it i get this error message:
    Errors during load. Refer to "\\dc\databases$\filling.log" for details.

    when i open my filling form i have a DBGrid which is gone and instead of the DBGrid i see a picture box

    when i go to properties i see DBGrid1 PictureBox

    i don't know where my DBGrid has gone...

    can some one please suggests what can i do?


    thankyou

  2. #2
    Frenzied Member longwolf's Avatar
    Join Date
    Oct 2002
    Posts
    1,343

    Re: Errors during load

    that happens sometimes.

    if you have a backup of your project, you can try that.

    if not, you'll have to re-add a DBGrid to your project an then replace the picbox with the grid. As long as you give it the same name it should work again.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Errors during load

    Are you loading the Project file (.vbp), or just the Form file (.frm)?

    The Project file not only keeps track of which forms/modules/etc you have, but also any Components and References that are used (such as the DBGrid).

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    150

    Re: Errors during load

    i re-added th DBGrid but now when i run my application i get
    cannot initialize data bindings...

    when i debug i get the highlighted error in:
    Code:
    DBGrid1.ReBind
    so what do i have to do now?

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Errors during load

    have you set the bound database in the properties of the dbgrid
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    150

    Re: Errors during load

    yes i have

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    150

    Re: Errors during load

    can i have someones help please?

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