Results 1 to 6 of 6
  1. #1
    snowboarder234's Avatar
    snowboarder234 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    243

    Subform: Value you entered isn't valid for this field

    I get the error message as indicated above in the Post New Thread title when trying to enter test data into the subform. However, when I click away the error message then I'm able to enter the data. Another curious anomaly is that the Street Address field automatically inserts the text #Error in the StreetAddress field when I click OK on the error message.



    So to recap: I get an error message:Value you entered isn't valid for this field, when I try to enter data in the firstName field. Clicking OK allows me to continue data entry, but this action automatically produces the text #Error to display in the StreetAddress field.
    Click image for larger version. 

Name:	HashTagError.JPG 
Views:	14 
Size:	40.5 KB 
ID:	24901Click image for larger version. 

Name:	BorrowBooksTable.JPG 
Views:	14 
Size:	29.8 KB 
ID:	24902Click image for larger version. 

Name:	ErrorMessage.jpg 
Views:	11 
Size:	139.2 KB 
ID:	24900Click image for larger version. 

Name:	BorrowingQuery.JPG 
Views:	13 
Size:	71.1 KB 
ID:	24903

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Sounds like there may be some VBA code in the form that isn't right, or there may be some data macros in the tables. Take a look at "View Code" while in form design view.

  3. #3
    snowboarder234's Avatar
    snowboarder234 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    243
    All it says is: Option Compare Database when I click on View Code while in form design view.

  4. #4
    snowboarder234's Avatar
    snowboarder234 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    243
    Okay, I've made minimal progress. I guess the problem was I had my heart set on having the Borrowing History subform on a tabbed page onto itself. When I abandoned that dream I dragged and dropped the subform onto the first tab (Books), and everything started to work -- which presents me with another problem. The form is now, dare I say: UGLY! The subform (which now resides in the form footer) is now covering up half of the main form and there's a white chunk of space that extends horizontally across the page. How do I rectify this and is there any possibility of getting the subform onto the tabbed page entitled "Borrowing History?"

    A screen shot attached for your viewing pleasure:
    Click image for larger version. 

Name:	Subform3.jpg 
Views:	8 
Size:	65.4 KB 
ID:	24916

  5. #5
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    .... having the Borrowing History subform on a tabbed page onto itself
    No problem with that - but see below on how to do it.


    For the error messages you are getting - are there any validation rules set for any of the fields?

    Another possibility is that the error is not being generated by the subform, but by the main form when you leave it to move to the subform. You may be entering invalid data into the main form.



    ... I dragged and dropped the subform onto the first tab (Books)
    That doesn't work - it only looks like it does. The subform is still on the main form.

    To move it to the tab:

    - Click to select the subform control
    - Put it on the clipboard with Ctrl-X (cut)
    - Click to select the tab you want to move it to
    - Copy the control to the tab with Ctrl-V (copy)

    This will put it on the tab, but you might have to move it (drag & drop) too where you want it on the tab.

  6. #6
    snowboarder234's Avatar
    snowboarder234 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    243
    That information was a lifesaver. A couple a days ago another forum member(s) advised me about the Ctrl-X, Ctrl-V method, but I was having so much trouble with this form I was afraid to attempt it again, but it worked!

    Now I'll have to do some redesign to accommodate the fact that the Borrowing History data is in a horizontal layout that is wider than the original size of the form. But that's minor, as long as the subform is working: syncing with the right book and feeding information back to the correct table I can't ask for much more than that.

    Wish me luck -- I have to do this two more times for the Periodical and Multimedia forms. Thanks for your assistance.

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

Similar Threads

  1. The value you entered isn't valid for this field
    By paologucci in forum Access
    Replies: 2
    Last Post: 03-21-2016, 01:40 AM
  2. Replies: 5
    Last Post: 10-08-2012, 06:24 AM
  3. Value you entered isn't valid for this field
    By rhubarb in forum Programming
    Replies: 12
    Last Post: 11-03-2011, 07:26 AM
  4. Replies: 4
    Last Post: 08-25-2011, 07:57 AM
  5. Replies: 17
    Last Post: 03-09-2010, 07:00 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