i'd probably add a macro to the xls file which ran on opening the file, which gets the data from the Access DB and updates the spreadsheet, rather than pushing data into the spreadsheet from the Access DB.
Saying that, I have found documentation on the Excel object model etc very hard to find...
Hi,
I haven't been using Access for a few months so I imagine what i'm asking is really basic, but I can't seem to figure it out all the same.
I have a main form with a subform, and also a separate filter form. The filter form opens the main form with a filter based on the subform (maybe the...
thanks for the tips. I've never really known how to debug JS apart from using alert etc.
It tends tp p!ss me off when I choose to debug, enter Interdev and then not know what i'm doing! It also p!sses me off that when you close that instance of Interdev it closes the browser window that you...
i've managed to figure it out myself - it doesn't look too pretty, but it works!
combos(counter).options[combos(counter).selectedIndex].text
Thanks for putting me on the right road Max.
Monty
Hi,
I have some combos which are being dynamically added to the page (i.e. multiple dependent combos) and I never know how many might be on the page.
All is working fine, except I need to get the actual text of each selected option, for each combo that exists on the page. I'm almost there - I...
thanks. Finally found a good article on managing multiple instances of forms. Haven't applied any of it as yet, but it looks like it should help.
http://users.bigpond.net.au/abrowne1/ser-35.html
Burns
Hi,
I have a subform (frmSubFiles) with some code which does a recordcount and updates a txtbox on the parent form (frmIFLR).
Private Sub Form_Current()
Dim intIFLRid As Long
If Not IsNull(Forms!frmIFLR.IFLRid) Then
intIFLRid = Forms!frmIFLR.IFLRid
Else...
how embarrassing. I have answered my own question...
It was due to me declaring the form instance variable as Private (Dim-ing it) rather than Public, in a Module. Doh.
I do have a problem which is pretty much spot on to what my initial question was, but i'll do another post.
Burns
I seem to be (almost) answering my own question here - apologies.
I seem to have narrowed the problem down to Access 2k. Even this simple code on a fresh form with one command button works in 97, and yet doesn't work with 2k.
Private Sub Command0_Click()
Dim frmTest As New Form_frmTest
Set...
Hi,
I know how easy it is to open another instance of the current form, but...
I have a subform on my form, which in it's OnOpen event fires some code to update a textbox on the parent form (recordcount).
How do I code so the OnOpen code in the subform knows which instance of the parent form...
Hi,
I need to return only those records where the contents of field1 is contained in field2. Eg.
Field1 1234
Field2 \\svr\share\folder\1234.pdf
It'll be something like:
SELECT *
FROM tblMyTable
WHERE Field2 Like *Field1*
But this doesn't work. Any ideas anyone?
Thanks,
Burns
Hi,
A bit of an urgent one unfortunately...
10 days ago I released a new version of a frontend DB, and forgot to update the linked-table links. The copy of the backend DB I was using for development was very much out of date. This means that an out of date copy of the DB has been receiving...
thanks for all your suggestions Jay, I really appreciate your time.
Unfortunately, due to the generic nature of the DB etc, neither of these solutions will be possible. I did think this was going to be difficult, so 'they' do know that it may not be possible.
Just had a thought though: if I...
don't know if I made that clear - you can't actually get into any of the subforms if I put this code behind the main form:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim intSubPractice As Integer
intSubPractice = Me.Form![frmPracticeSubGroup]![cbSubpractice]
If intSubPractice =...
thanks Jay.
It seems it's not so simple though. There are loads of subforms on the main form, and each time you try to enter any of them, the main forms BeforeUpdate event fires and cancels the action.
Not sure where to go now - any ideas anyone?
Thanks,
Burns
i'm getting the error:
"The command line you used to start Microsoft Access contains an option that Microsoft Access doesn't recognize
Exit and restart Microsoft Access using valid command-line options"
Then once Access 97 starts, I get another error:
"Microsoft Access can't...
apologies, I had to leave this alone for a while.
I'm having trouble stopping the user from navigating back to the previous record. I'm using the main forms AfterInsert event but it still saves the rec and moves to the prev rec. Here's my code:
Private Sub Form_AfterInsert()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.