As I am not allowed to use Access for a project, I am having to mak
Exce2002 work/look like Access.
My utility is basically just a load of forms with commandbuttons, tex
and listboxes where values entered/selected are placed into th
woksheets behind the forms where formulas calculate values. Onc
calculated, the totals values are entered into tables below
like an entry in a datasheet view
The whole utility works fine in standard manual entry mode, but I no
need to setup an option where I can click one commandbutton and it wil
go off and open each form in turn, enter the relevant values (and s
enter into the worksheets and let the formulas calculate), and then ru
the commandbutton on each form that adds the values to the relevan
table below. I can't get it to work.
Here's an example of the code
frmRMSelected.Show
Run frmRMSelected.cmdRMAdd
frmRoadmap.txtRMItemDesc = itemdesc
frmRoadmap.txtRMItemNo = "12"
Run frmRoadmap.cmdRMSaveNew
Me.Hide
I originally tried to invoke the Click Event (without Run) of th
commandbuttons but no joy.
This code is supposed to show the frmRMSelected form and then click o
the cmdRMAdd button to initiate it's code. It does the rest but ignore
the "Run " lines
My only option at present is to put all the code from all the form
into one funcvtion and run that. That would be massive and messy.
Any ideas ASAP please?
Thanks
Barr
--
Message posted from
http://www.ExcelForum.com