By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,105 Members | 1,040 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,105 IT Pros & Developers. It's quick & easy.

vb6 dll

P: n/a
dear gurus,

I had written one dll file hereunder, just to perform the same actions
on all forms and i can call them from any where, means write once then
run everywhere:
+++++++++++++++++++++++++++++++++++++==
Public appAction As New Access.Application

Public Function ac_first()
appAction.DoCmd.GoToRecord , , acFirst
End Function
+++++++++++++++++++++++++++++++++++++

where on form i call like this:
+++++++++++++++++++++++++++++++++++++
Option Compare Database
Option Explicit

Dim objAction As Takaful.basAction

Private Sub btnFirst_Click()

Call objAction.ac_first

End Sub
+++++++++++++++++++++++++++++++++++++
now it does not works properly can any one helps me where i am doing a
mistake...basically i wanted to write all codes/logics/functions in dll
then call there... i had written other fucntions of calendar working
fine...but all action button using via com/automation giving me error
rgds,
shahzhad

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Can't see what you are trying to achieve. Your method, (regardless of
whether it works or not) needs 1 line of code for your button (Call
objAction.ac_first).
Keep it simple and just have the code as DoCmd.GotoRecord , , acFirst
"SalimShahzad" <sa**********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
dear gurus,

I had written one dll file hereunder, just to perform the same actions
on all forms and i can call them from any where, means write once then
run everywhere:
+++++++++++++++++++++++++++++++++++++==
Public appAction As New Access.Application

Public Function ac_first()
appAction.DoCmd.GoToRecord , , acFirst
End Function
+++++++++++++++++++++++++++++++++++++

where on form i call like this:
+++++++++++++++++++++++++++++++++++++
Option Compare Database
Option Explicit

Dim objAction As Takaful.basAction

Private Sub btnFirst_Click()

Call objAction.ac_first

End Sub
+++++++++++++++++++++++++++++++++++++
now it does not works properly can any one helps me where i am doing a
mistake...basically i wanted to write all codes/logics/functions in dll
then call there... i had written other fucntions of calendar working
fine...but all action button using via com/automation giving me error
rgds,
shahzhad

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.