Record Display won't update after ComboBox selection - sharepoint

We're using an Access Application that presents a ComboBox built off of a query that polls a Sharepoint list, then shows the details for that record when clicked.
It's worked perfectly for seven months or so, but today, one of the users ran into an issue when trying to add a new record to the List. After the ComboBox would update with the new entry, clicking on it would not update the display of that record. The highlight in the ComboBox would move, but the details would still reflect the last record chosen.
Thankfully (?) I can re-create the issue on my copy of the client application, so I can troubleshoot it and also prove that it's a repeatable issue, not just a sporadic bug.
Here's what I've got so far:
Restarting the affected form allowed normal operation to continue, but while that's an acceptable workaround, it's obviously not an acceptable solution.
Editing existing records does not trigger the issue. The edited records display perfectly.
None of the fields in the problem List are 'required'.
The Sharepoint List in question has about 1700 records, so it's not a large database at all, and on top of that, the ComboBox is only displaying a Query that returns 30-50 records.
Made a test form that recreated a similar environment for one of the other Sharepoint lists in the DB and got the same response... or... lack of response.... from the ComboBox after adding a new record.
VB Calculations do not appear to be affected and can use the new records in formulae, despite heavy usage of Recordsets to compile those values.
Any advice will be most welcome!

This looks simply like the form is not refreshing the values, try pressing F9 (ReCalc) or F5 (ReQuery) and see if the value updates. There is a bug on access forms where going back from a new record and then forward again seems to stop recalculation - this seemed to fix it for me:-
Private Sub Form_Current()
Me.Recalc
End Sub

Related

Issues with PowerApps since end of August 2021

I have been using PowerApps for a couple of years now to create simple user interfaces with SharePoint lists as the database.
Since last week I have started to experience a number of issues with my apps. For example, when referencing a SharePoint list single line of text column by its field name, PowerApps says that it doesn't recognise the identifier. I use the exact same formula for a different single line of text column in the same database and it works fine.
I have a gallery that I have added a couple of extra label fields to. The formula that I am using is simply 'ThisItem.ColumnName'. For one that works this is 'ThisItem.Address' and this displays the address which comes from a single line of text column. One that doesn't work is 'ThisItem.Industry'. The internal field name for the column is definitely Industry and it is definitely also a single line of text column. In the label itself I have switched between both formulas and again the Address column displays fine but the Industry column is not recognised.
I have further tried:
Recreating the database from scratch
Deleting the column/s that aren't being recognised and recreating them
Refreshing the data connections, including deleting and re-adding
Using Edge instead of Chrome
Creating a database on a different teamsite (same site collection tho)
Turning off all experimental features in the settings
I would upload some screenshots but as this is my first post, I'm not allowed to....
Has anyone else experienced anything similar? Anyone able to provide some insight as to why this has suddenly started occurring? HELP, anyone????
Thanks in advance.
Shannon
So i found what was causing the issue, still in the dark as to why though.
The gallery is linked to multiple databases (sharePoint lists) through an IF statement. The user selects a district from a drop down box and depending on what they select, the gallery is filtered using this IF statement.
The weird thing is, that the filter on the gallery works perfectly fine and displays all the records from that database. But for some reason, it only chooses to recognise a select few of the columns within that database.
When i removed the IF statement and just linked up one database, it works perfectly fine and all columns are recognised and display fine.
So, back to the drawing board on this one. At least i know now that i need to rework my gallery set up and that it isn't a case of corruption with the app or the database (that was my biggest fear!)
Hope this info provides some help if anyone else experiences this same issue.

Access Subform Datasheet Only Returning 1 Result

I know this question has been asked multiple times in some form or fashion, but I'm not been able to find a solution that works and it's driving me crazy. I'm creating a search form in Access that executes a select query via VBA to find data that is in a table. So far this has been pretty straight forward, the query works, and the form returns results. The issue is that I'm using a subform to return/display the results and it is only returning one result at a time.
I used the setup wizard to add the subform to the main form and I linked the two forms during that process. I have the subform being displayed as a datasheet, but even if I change it to a "continuous form" it still just returns one record at a time. I have my subform's Record Source set as my Select query (Select * From tbl_Search) , and I've set the Record Source for my main form to just about anything I can think of (Select query, table, nothing...).
I know there has to be a way to return all the records in one datasheet without having to continuously click the next arrow, but I have yet to figure out what that way is.
Since this isn't an issue with the code per se, I wasn't sure what kind of images or code blocks might be necessary to answer this question, so i tried to be as descriptive as possible. If there is a chunk of code or screenshot that you need to help answer this question, just let me know.
Your main form should be unbound. Create a search query and set it as the subform's recordsource. You can pass the main form's fields as parameters to the query, for example:
PARAMETERS [Forms]![YourMainForm]![YourTextField] Text (255);
SELECT *
FROM YourTableName
WHERE ((([FieldName)=[Forms]![YourMainForm]![YourTextField]));
The only thing you have to do when running a search is to .Requery the subform.
Me.SubformName.Form.Requery

Record insert/delete anomaly

I have the next problem to which I need help to solve.
There is a Workbook with three forms and a Database in Access.
There is a table in the DB called tblPlanungStatus where I record if a module is ready.
All three forms uses the table to either delete or insert a status into it.
There is an anomaly that occurs most of the time from Form3.
I insert the status, it runs without error. I run a query to count the recorords for this type and it comes back 1. Wich is good.
In the DB nothing happens, it shows no record added.
I run the query again and it says there is 1 record.
I run delete and the count says 0. So it seems to work. But in the DB still nothing.
I close the Workbook and run the count again and the record dissapeared, in the DB nothing shows.
If the record stays in the DB then when deleting it works, but after closing it comes back again.
Sometimes the record cannot be added, sometimes it cannot be deleted and when reopening the Workbook (which I don't know why matters) the record either deletes or adds.
In the DB the record appears and dissapears with a certain time, but not always.
I have been stuggling with this for over a week. Can anyone help me?
Thanks, Mike
Probably your Access database corrupted. Check this, especially "Number of records varies, depending how the data is sorted"

Multiple values appear as a single entry in the lotus notes view

I have an issue with a lotus notes view. This view displays entries based on the number of problems in the field "All problems". This field is a multivalued field. In the view column properties for the column "problem", the multivalue separator is New line & under the sorting tab, the checkbox against "show multiple values as separate entries" is checked. When i see the view from my machine, multiple values appear as a separate entry. When i checked in another machine, the view was displayed as expected. The problem came, when i tried to do a search for documents based on a value. Now the multiple values come as a single entry which is not supposed to happen. The strange thing is it appears fine in my machine. But when i tried it in another machine, i face the issue. To make sure its not a version problem i checked it in a machine with the same version as mine(8.5.3) also tried in a lower version(7.5) but got the same result. I even tried the following: 1.delete the cache.ndk. 2. remove the DB icon from workspace and reopen the database from applications. 3. go to (Byurl) view in bookmark.nsf and delete all the documents and reopen lotus notes. 4.rebuild views using Ctrl+Shift+F9. Could not do a database rebuild(no access). Does any one know what can be the problem and possible resolutions?
The search is returning a single document, which is correct. It's the representation of the document that is annoying you, you want to have it displayed as it was originally, i.e. with a categorized column. If you are sorting another column in the view, the categorized column gets turned off.
Have a look in Search in View/More/Sort Results by, that might be your problem.

Retrieving a sharepoint list in Infopath only shows first 100 records

I am retrieving a list of values from a sharepoint list, which works well but my problem is that it only retrieves the first 100 records. there are currently 500 records that should be available.
Scenario: I have two comboboxes on an infopath form:
A List of Locations
A list of areas within the locations
the list of locations will filter the list of areas but as infopath seems to only retrieve the first 100 records so most of the locations do not show any areas as there is nothing to filter.
By design, the query will only return the first page of results from the default view for the list. Change the item limit for the default view in SharePoint, and you'll change the returned values for InfoPath.
EDIT (links from my comments, here for greater readability):
Here are sources describing this fix in MSDN forum (scroll to the bottom), a blog comment that describes the SharePoint setting step-by-step, one with a screen cap of the somewhat counter-intuitive interface, and another describing performance implications on the server side.
Hope this helps.
Just documenting what I have discovered trying to resolve the problem. I have not been able to change the default view as yet as I dont have the permission to. That should change though.
One possible workaround I have found is that you can export the list to Excel which contains all the data that I was looking for. the file that sharepoint produces is an Excel Query file like "export.iqy". You can save and open the file in notepad. which will look something like the following
WEB
1
http://SharepointSite/_vti_bin/owssvr.dll?XMLDATA=1&List={14C4ED2B-3050-4C47-B5F3-6333C3B0FB28}&View={8E6124E0-23F2-4BA2-86E7-96E7F36BAEC8}&RowLimit=0&RootFolder=%2fLists%2fSharepoint%20Sites
Selection={14C4ED2B-3050-4C47-B5F3-6333C3B0FB28}-{8E6124E0-23F2-4BA2-86E7-96E7F36BAEC8}
EditWebPage=
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
SharePointApplication=http://SharepointSite/_vti_bin
SharePointListView={8E6124E0-23F2-4BA2-86E7-96E7F36BAEC8}
SharePointListName={14C4ED2B-3050-4C47-B5F3-6333C3B0FB28}
RootFolder=/Lists/My list
You can take the third line which is -
http://SharepointSite/_vti_bin/owssvr.dll?XMLDATA=1&List={14C4ED2B-3050-4C47-B5F3-6333C3B0FB28}&View={8E6124E0-23F2-4BA2-86E7-96E7F36BAEC8}&RowLimit=0&RootFolder=%2fLists%2fSharepoint%20Sites
And use that to retrieve the complete list. I added an new receive data connection, selected an xml document and added the above URL.
It is not formated particullary nice but it will return all the data that I was expecting.
I think that Argalatyr solution is much simpler at this point, but it depends on if i am able to get the default view changed.
there is yet one workaround of this without such hardcoding. If you open Query editor, then you have there available ribbon with menu items. Open "Home" -> "Select top rows" and enter there some realy high number (I have in my list 596 rows, so I entered there as limit of top rows 20000 and I got whole list).
Sorry, I don't have available English version of Excel, so I cannot add screenshots.
enter image description here

Resources