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

    Question optionGroup - error

    what could be wrong now...
    I have below, code for my option group (Frame1196). "Spine" is the table field name but I keep getting this error even though the option group exists on the form. Help me Please!


    If Me.NewRecord Then
    Me.Frame1196 = Null
    Else
    Me.Frame1196 = Switch(Me.Spine = "Yes", 1, Me.Spine = "No", 2, Me.Spine = "Unknown", 3)


    Click image for larger version. 

Name:	NotFound.jpg 
Views:	6 
Size:	92.8 KB 
ID:	18082

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    The error indicates that you do not have a control named "Spine" in your form. Also, 1200 controls on a single form is a lot. Even if you have deleted most of them during development, consider rebuilding your form by creating a new form object. You can copy over good controls using copy/paste. Use the ellipses in the property sheet or the pull downs in the VBA editor to recreate the sub procedures. Option groups cannot be pasted into a new form. They must be created using the wizard.

  3. #3
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    Many thanks ItsMe. The form control is named "Frame1196". It is the table field that is called "Spine". However your advise is noted I'll try creating a new Optionsgroup for this one

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

Similar Threads

  1. Replies: 11
    Last Post: 05-01-2014, 11:56 AM
  2. Replies: 3
    Last Post: 01-23-2014, 07:49 AM
  3. Replies: 0
    Last Post: 07-16-2012, 05:42 AM
  4. Replies: 6
    Last Post: 05-30-2012, 12:32 PM
  5. Updating ListBox from OptionGroup
    By dssrun in forum Programming
    Replies: 3
    Last Post: 10-26-2010, 07:58 AM

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