Results 1 to 6 of 6
  1. #1
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239

    Exclamation Error on opening file

    hi, I have this error message when I try to open my Front End application. Could someone please advise what is wrong with it
    many thanks

    Click image for larger version. 

Name:	error.jpg 
Views:	12 
Size:	99.5 KB 
ID:	18014

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You have code in there that has the word RETURN, but a gosub was never called.
    You could comment out the word RETURN. (you might need it later)

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by ranman256 View Post

    ...You have code in there that has the word RETURN, but a gosub was never called...
    Well, that might be the case, but this is one of those error messages that frequently have a cause other than the stated one. You probably need to copy and paste you Form_Open, here, and maybe your Form_Load code, as well.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    so weird - I don't have the word RETURN in my VB code. Perhaps its equivalent is somewhere in one of the pesky macros. Anyway this (DoCmd.ShowToolbar "Ribbon", acToolbarNo) is the only code I have in the OnOpen event of my login form. I have removed it and put it in the OnLoad event.

    Seems to be fine now. thanks ranman256

  5. #5
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    Thanks Linq. It is working working now. hopefully it will continue to do so

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    People put a lot of things in Form_Open that need to be in Form_Load, but these are usually things that refer to specific data in the Form, and at the Form_Open data is not yet available. But since this actually has to do with the Form's design, I can only surmise that the Ribbon hadn't, as yet, been substantiated when your command was trying to turn it off.

    Good luck with your project!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Opening a File
    By Mahendra1000 in forum Access
    Replies: 1
    Last Post: 01-24-2014, 07:45 AM
  2. Replies: 7
    Last Post: 03-08-2013, 02:13 AM
  3. Problem opening file, Error 3197
    By mmad57 in forum Security
    Replies: 11
    Last Post: 01-24-2013, 08:06 AM
  4. problem opening .mdb file
    By honeybee in forum Access
    Replies: 7
    Last Post: 06-25-2010, 11:33 AM
  5. Value List with opening a file.
    By seaper in forum Forms
    Replies: 0
    Last Post: 10-21-2009, 01:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums