OnCurrent

Oct 10, 2006

Hi guys,

I've done a search of the forums but couldn't find a useful answer to my current problem.

I have a form which, OnCurrent, refreshes the form and consequently changes the value in a particular list box. Note that this is a first draft of this database so large chunks are due to change. However, when testing the OnCurrent it takes up to 3 seconds to update the list box. As there are only two records at the moment, it's unacceptable to have to wait this long when I anticipate there being upward of 15,000 records in the finished version!

I can't have gotten much wrong with this can I?
Private Sub Form_Current()
[Forms]![New GID_PO].Refresh
End Sub


Why is it taking so looooooong???

View Replies


ADVERTISEMENT

OnCurrent Event

Sep 9, 2005

Hi all
I am using the OnCurrent event even to check various about the contents of the current record in a form and ask for additional data where necessary with InputBox, but if it finds missing data on the first record when the form is opened, it displays the box before the form is on the screen. How can I make it display the form first?
Fiona

View 9 Replies View Related

Changing Subform's Recordsource With OnCurrent

Jun 29, 2005

Hi

I have problems working with a 3 level form

I have one main form called Projects

Depending on the record on the form Projects, the subform called Products will display the correct info

And on the OnCurrent event of the form Products, it will display the correct info for another subform called Product_Info

The problem is, the subform called Product_Info is dependant on a field on the Projects form, and on a field on the Products form so I cannot directly link the Product_Info form with either the Projects of Products form

What I'm doing is changing the recordsource of the Product_Info subform on the OnCurrent event of the Products subform but for some reason it won't work

If I display the recordsource of the Product_Info subform, it displays the right recordsource triggered on the OnCurrent event of the Products subform, but the data doesn't display

Thanks

View 3 Replies View Related

Modules & VBA :: Form OnCurrent Event Not Firing Properly

Aug 7, 2014

We use our CRM for entering client orders, which is done through our 'OrderEntry' form. On that form we have a subform that we use to enter order lines - as we have a range of products on offer, an order can be made up of one product or anything up to 100.We have an 'amount' textbox on the subform, that the users enter the cost of each line, and as they add more lines the total cost of the order is calculated using a textbox in the subform Footer, with the ControlSource set to =Sum([amount]).

On the main form, we have a Net textbox, that the user will add in the total cost of the order once they've added all the order lines, and providing the =Sum([amount]) textbox on the subform matches the figure in the Net textbox, a button to Proceed the order and go on to the next step appears.

The intermittent problem I have, is that the OnCurrent event I use to show the Proceed button does not seem to fire on its own - but when I stop the code and step through it, it will show the Proceed button without any problems.Here's the code:

(the Proceed button is referred to a 'Command80')

Code:
Dim OS As String
Dim UT As String
OS = OrderStatus
UT = fGetUserType

[code]....

I've made the part that refers to the Proceed button bold, but thought I'd add in the whole OnCurrent event in case there was anything in there that was blocking it.

I added in the MsgBox code at the bottom to make sure the OnCurrent was firing, and that works fine.I've searched through the rest of the code, and there's nothing else in there that references the Visible property of the button.I've been through the decompile process detailed here, and also been through this similar thread with a fine toothcomb and this still won't work.

I've saved the form out as a textfile and then imported it back in, both through the immediate window, and short of importing everything in to a new DB and starting again

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved