Results 1 to 11 of 11
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Question Form subform not allowing me to add a value mystery

    I have a subform that won't allow me to enter data into a date field. If click the Access design icon and then click back to form I can suddenly make data entry.

    The forms are not locked.

    I can't figure this one out.



    If I open the subforms query source it runs fine and I can edit data within it so I can't see it being a query problem...

    Click image for larger version. 

Name:	capture.JPG 
Views:	10 
Size:	46.7 KB 
ID:	13442

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Want to provide db for analysis? Follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    Want to provide db for analysis? Follow instructions at bottom of my post.
    I'll have to pull away that particular section, clear it and send it to you sometime in the next few hours.

  4. #4
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    Want to provide db for analysis? Follow instructions at bottom of my post.
    https://www.dropbox.com/s/qknrfjc3ivgam1o/Database.zip

    you have to enter "smith" in the splash screen.

    you may need to add a task in the admin form

    still does problem even with all the database cut out which means if you can see what it is it will fix on the full database too.

    It's the tasks panel on the right of the form after the splash screen login.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why do you need to repeat the telemarketer info in the subform? The filter criteria on telemarketersurname in the subform doesn't make sense because the subform synchronizes with the record on the main. The subform RecordSource needs the telemarketerID field from tblTasks table. Remove tblTelemarketer from subform RecordSource.

    Change the subform AllowAdditions property to Yes.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    Why do you need to repeat the telemarketer info in the subform? The filter criteria on telemarketersurname in the subform doesn't make sense because the subform synchronizes with the record on the main. The subform RecordSource needs the telemarketerID field from tblTasks table. Remove tblTelemarketer from subform RecordSource.

    Change the subform AllowAdditions property to Yes.
    I've opened the subform (the form) and put the form property allowadditions to yes with the same result.

    I removed the filter from the query (replaced with TelemarketerId field)- works just the same (probably did that when I was fooling around with getting it to work) and I removed the table.

    problem is still there on initial load. Once I click to design view and then back for some reason it works but I need to work on the first time I load.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Problem may be related to the embedded macro and the tempVars variable. I replaced it with a VBA procedure and the form opens fine. I don't like nor use macros.

    Private Sub SaveVarBtn_Click()
    DoCmd.OpenForm "frmSwitchStaff", , , "TelemarketerSurname='" & Me.txtSurname & "'"
    DoCmd.Close acForm, "frmSplashscreen"
    End Sub

    Recommend query for main form not be INNER join, use LEFT:
    SELECT tblTelemarketer.TelemarketerID, tblTelemarketer.TelemarketerName, tblTelemarketer.TelemarketerSurname, tblTelemarketer.MergedNameT, tblAreas.AreasID FROM tblTelemarketer LEFT JOIN tblAreas ON tblTelemarketer.TelemarketerID = tblAreas.TelemarketerID;

    Be aware the form will still open even if invalid name entered on the splash screen but since there probably aren't any records for the bad name, the form won't work.

    Why is the Task textbox Locked?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    Problem may be related to the embedded macro. I replaced it with a VBA procedure and the form opens fine. I don't like nor use macros.

    Private Sub SaveVarBtn_Click()
    DoCmd.OpenForm "frmSwitchStaff", , , "TelemarketerSurname='" & Me.txtSurname & "'"
    DoCmd.Close acForm, "frmSplashscreen"
    End Sub

    Why is the Task textbox Locked?
    Thanks I will give it a go. Just out of curiosity if you want to convert your database for online use don't macro's then become important since they convert over for web use?? Just curious as I've never had that answered and I'm worried that all this vba is going to bite back later...

    Also what happened to creating the temp variable? That needs to be called for later use in the database...

    Task is given by the admin not the user. That is why it is locked. It's a request by the admin to do a task. The user justs fills out the completed part only.

  9. #9
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    I had the macro on read only.. I think that is why.

  10. #10
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    ...yah it was the macro. I had open form to read only. I removed that. Without you mentioning that though I would have been guessing for months.

    Attachment 13461

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I've never built a web database but yes as I understand, need to use macros for the client web forms. I have seen web database with VBA but think those was for forms/reports only for local use, not served up on web for client use.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Form Mystery Record 159
    By justphilip2003 in forum Forms
    Replies: 17
    Last Post: 06-03-2013, 12:59 PM
  2. Subform not always allowing new record creation
    By Canadiangal in forum Forms
    Replies: 1
    Last Post: 03-28-2013, 11:00 PM
  3. acFormEdit is allowing form additions
    By kelann in forum Forms
    Replies: 2
    Last Post: 10-17-2012, 11:22 AM
  4. Form not allowing new entry
    By Lshy01 in forum Forms
    Replies: 1
    Last Post: 02-04-2011, 10:19 AM
  5. Calendar Mystery
    By BankWalker in forum Forms
    Replies: 0
    Last Post: 02-16-2006, 01:29 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