Results 1 to 10 of 10
  1. #1
    moon-ray is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    7

    Missing row source of a field in a linked table

    I have a database that I am developing. I am using Access 2010 on a Windows 7 platform with Service Pack 1.



    The database has been split into a data database and one containing the forms, reports and code. I started to have problems with a combo box in a form after changing the controls row source to display records that I had marked as OBE. In troubleshooting, I noticed that in the design view of the table that is the source for that form the row source for the field was blank.

    I closed that database and opened the database that holds the data. I opened the problem table and viewed the problem field. The row source definition was there. I have relinked the fields, but the row source still is blank.

    I copied the row source from the data database into the forms database. All worked until I closed the database and opened it again. As I expected, that problem field row source was blank since changes cannot be saved to a linked table..

    The data database is encrypted. I unencrypted that database and relinked the forms database to it. The row source still was blank. I checked the data database, and the row source there. Below are two screen captures of the row source property.

    Does anyone know how to correct this problem?

    Thanks, in advance.

    Row source in the data database:
    Click image for larger version. 

Name:	RowSourcePresent.png 
Views:	14 
Size:	5.1 KB 
ID:	18750
    Row source in the form database:
    Click image for larger version. 

Name:	RowSourceMissing.png 
Views:	14 
Size:	4.5 KB 
ID:	18751

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Do you have lookups in other tables? Do they work?

    Advise not to build Lookups with alias in table. http://access.mvps.org/access/lookupfields.htm

    Build combobox on form. Does the combobox on form work?
    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
    moon-ray is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    7
    Thank you for the lookup advise. The comboboxes work.

  4. #4
    moon-ray is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    7
    How was this thread marked as solved. It was not solved. I still do not know why the row source was missing.

  5. #5
    moon-ray is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    7
    I need to expand my answer about the comboboxes work. When I open the form, the comboboxes work. When I use a technique that I use regularly, I change the row source to display includes OBE records or do not by adding to the WHERE clause of the SQL statement that makes up the row source. One combo box loses it value, but if I click on the down arrow, the previous value is available in the drop down values. I cycle through the Show OBE and Not Show OBE and the second drop down box whose row source is changed goes blank. It did not the first time I cycled through the cycle. I have copied the new SQL statements from the immediate window in the Code windows and pasted them into a query design window. The SQL statements display the correct records including the record of the bound column in the fields that are going blank. I am not finished troubleshooting this issue and am not asking for help here.

    I just want to know why the row source for a field in a linked table disappears.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Because the combobox works, I assume you also set a link to the lookup table?

    I never build lookups in tables. So I just tested by setting a lookup in a backend and then looking at the link in frontend. This all works for me. Cannot replicate the issue so can't explain why it fails for you.

    Does it matter if the combobox works? Wasn't that a solution?
    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.

  7. #7
    moon-ray is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    7
    Quote Originally Posted by June7 View Post

    Does it matter if the combobox works? Wasn't that a solution?
    As I wrote above, the comboboxes work until I modifying the row source. I am still troubleshooting. I am not sure if the problem is not associated with the problem that the row source is not available in the linked table. Until the link table problem is resolved, I can not rule out it is causing the problem, the problem exhibits itself by causing both issue, or it has nothing to do with it.

    Second, I have set up the table with the information so that when I add that field to a form or report, the display is correct without having to change several properties each time the field appears.

    Lastly, this should not be happening.

    I am just asking if someone has seen this problem and knows a solution. That you tried to reproduce the problem, I thank you for your time and effort to help. I have been using this technique for over 10 years without anything like this ever happening. While I only write personal databases I use myself, 10 years ago, I wrote two financial databases that were used in production at my company at the time. With all of this experience, I never have seen this happening before. I am just trying to find out why.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I tried again to replicate the issue. The modified RowSource is immediately reflected in the link.

    Only thing I can think of is some kind of corruption.
    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.

  9. #9
    accedeholdings is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Sep 2014
    Location
    Hackney, South Australia
    Posts
    17
    Your solution is epic. I tried it on our end and it worked. Thanks for this solution.

  10. #10
    moon-ray is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    7
    The problem must have been something corrupt in the data database. I solved the problem by importing the tables back into the database and split the database again. Everything is working.

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

Similar Threads

  1. Missing fields in linked table
    By kdbailey in forum Access
    Replies: 2
    Last Post: 02-15-2014, 06:14 PM
  2. Replies: 5
    Last Post: 11-12-2013, 12:14 AM
  3. Replies: 2
    Last Post: 02-19-2013, 04:02 PM
  4. Missing data from linked table
    By tprice5 in forum Access
    Replies: 1
    Last Post: 06-28-2012, 02:35 AM
  5. Linked table from outlook missing columns
    By nehamd4 in forum Access
    Replies: 0
    Last Post: 07-21-2010, 12:58 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