I'm having some trouble with WHEN to open a table that is being used by a grid. I've set the grid up in design time, so that it's recordsource is "currency", and all the columns are currency.field1, .field2, etc
Now, I want to only have the currency table open while this form is open (so ideally, it would be opened and closed at the same time as the form).
I tried putting the USE... statement into the form.init event, but apparently, the recordsource of the grid is read before the init event, so I get "Alias currency is not found". Is there any way I can do this, without setting the grid at runtime, or opening the currency table before the form is loaded?
Now, I want to only have the currency table open while this form is open (so ideally, it would be opened and closed at the same time as the form).
I tried putting the USE... statement into the form.init event, but apparently, the recordsource of the grid is read before the init event, so I get "Alias currency is not found". Is there any way I can do this, without setting the grid at runtime, or opening the currency table before the form is loaded?