Hi peeps, I have been learning access 2007 and have been trying to find out how to auto refresh a split form. I have tried everything from ontime event Me.Refresh Me.Requery with the interval set to 10000. I just can't seem to get the form to auto refresh. I have a column using a combo box in the table below the form that I need to auto refresh as it has a filter on it and would update based on the filter requirements. I have read that forms can be auto refreshed as if one were to click the refresh all button but I cant seem to do it. I'm a newby so be gentle and I don't know code so am pretty stuffed.
Any help would be amazing and really appreciated.
You can also set the fonts (although the only way I could get it to work is if the last item I set was the DatasheetForeColor. If I didn't set that, they just didn't seem like they were working. So you could just set it to vbBlack as normal.
There seems a lot you can do I had noticed that I was able to achieve some things through trial and error but that is a mighty long list. I wonder if you could take a look at my second thread and see if there is a way of achieving the results I need.
I have attached the DB so you can see what I mean, am a novice so my explanations are sometimes a little vague , thanks in advance.
Perhaps that was a bit of a harsh statement on the poor Split Form . I should have said it provides very little programming capabilities. They have their use though.
Perhaps that was a bit of a harsh statement on the poor Split Form . I should have said it provides very little programming capabilities. They have their use though.
well if you open the form venus dispatch system and go to new record and type a name into the passenger combo box hit enter a query will run and show duplicate names of passengers that have previously booked jobs, but I only want the names of passengers that match the name that you input.
So if someone called ken calls the query will return all people named ken who have previously called so I don't have to type out all the details again.
Ok. Has this got anything to do with your "auto refresh" problem? It seems to be a totally different issue.
There's no problem with the duplicates because they are not duplicates. The query itself contains those records and that's exactly what the split form (and the parent form) is displaying. If you want unique records (i.e. the same records based on your combo box) then you should base your form on the recordset of your combo box but this obviously isn't what you would want to do.
Correct!
If you have a look at my reply to Bob, I asked him if he could take a look at my second thread but posted the db here for convenience, my second thread asked if there is a way I could modify a query to return a specific number of records based on the name entered in a combo box on a form. Now I know I can achieve this but I have to tell access what I want it to do in a language it understands, that is what I'm working on, I'm trying to understand the language access understands and hopefully I'll get there.
But thanks buddy for having a look and giving me a hand.
The main distinction between Refresh and Requery is that the Refresh method will only reflect changes made to the currently viewed record whilst the Requery method requeries the database for the entire recordset.
But this isn't what the OP (or consequent questions) is about.