I show the code being run through in the video with the forms at My video of the problem - did you see it? It shows that after the recordsource update with SQL code it rerunds the module - it is at this point that the cursor goes back to the top of the middle subform. I don't have any problems...
I do a requery on the top subform and the cursor does not return to top - only when I update recordsource and it re-runs the subroutine as you can see in the video. The cursor change is before the requery. I'd like it to update the recordsource then continue and not re-run the module.
Hi there - I have recorded a short video to explain the problem at My issue with RecordSource
In summary when the VBA runs and the RecordSource is updated it reruns the subroutine for some reason and during that process it changes the focus from currently selected row to the top row and then...
It is changing the record selected after a recordsource update and before the requery - would I still use a bookmark feature? As you will see from the video it will rerun teh subroutine after updateing the recordsource so not sure bookmarking will help in this instance.
Thanks
Paul
I have recorded a video to explain the problem in more depth at My VBA Problem
The issue I have is that it runs back through the Subroutine after updating the RecordSource and as a result the cursor moves from whatever line is selected back to the top so the resultant requery is for the wrong...
I have hidden fields on the forms for date which are turned on or off depending on which month is chosen - I'll record a video to show what is happening
Hi there - I have a datasheet and would like it so that when I select an option from that datasheet in that subform then the subform below is updated to reflect details for that line item.
I have the following code:
Private Sub Form_Current()
Set form2 = Me.Form
For Each ctrl In form2...
I recreated the database after corruption and this is on the recreated database so don't think it is same issue - just probably slightly messing up the syntax but driving me potty
I have created a new database and imported in the database and forms and relevant queries and worked first time - the only thing I can think of is that I created a new form with a slighly similar name to an existing one - nothing else changed. Most likely it is corruption going by other posts...
This is driving me potty - a couple of times I have had it where can debug past a line so I think it's working then later throws up an error on same code.
I have 3 forms currently
When I Select something on the first one I want the bottom subform to update so I have code on on current and...
No recent updates - last was end of April and I already checked for broken or missing references. Nobody else would have tampered with it as it's only locally on my laptop at this point
I'll try recreating the database and see if get same issue there - bloody Microsoft
Paul
I am getting
When I try and update recordsource on a subform from VBA - it was working fine yesterday and now not working
If I use the same SQL and set it manually it works fine on the subform
also happens on lines like this
Set frm = Me.FrmMonthDeptQuery.Form
which worked fine before - the...
Hi - removing the FA and GL did the trick
Where forecast has a value for Feb through December and the user can pick a tab with a matching name e.g. tab 0 is Feb, tab 1 is Mar is there a way I can show the relevant query without having to update the VBA with an SQL line with a case statement for...
Yes I have also explained that field names should not have spaces .. and will work with finance to update their original spreasheets which will be imput into the database as forecasts become actuals..