473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Access2002 * external apllication

Hi

I have asked several groups now for advise but I feel I must be
confusing either them or myself, but anyway here goes!

Below is code taken from the "OnClick" function of a
command button within a Sub-form called Plots.
This Sub-form resides along side six other Sub-forms
within the Details section of a main form called Session
Header.I require to be able to go into any of these
subforms at any given time, unfortunately I have one
problem which prevents me from doing this and it occurs
when I am in the Subform "Plots", if I select one of the
Records of this subform and retrieve the data using a
Graphics Software Application, although it pulls up the
plot onto the screen I cannot then go into any of the
other subforms to analyse the data for the Plot I select.
The small Routine as mentioned previously is shown here:

Private Sub RunPlottergeist_Click()
On Error GoTo Err_RunPlottergeist_Click
Dim Freq As String
Dim Plottergeist As PltgeistX
Set Plottergeist = CreateObject("Pltgeist.PltgeistX")

'Sets Plottergeist to run in mode for resultant Plot for
this application
Plottergeist.Window_State "Norm"
HPGL_Data.SetFocus
Plottergeist.AddHPGL (HPGL_Data.Text) 'HPGL data
'Originating from HP Analyzer
Plottergeist.CopyGraphicToClipBoard 'Note. Max of 24 Plots

'AppActivate "Microsoft Access"
'DoCmd.GoToControl "SignalPassFail"
'Freq.SetFocus
'Assistant.Reduced = True
MsgBox ("Click To Close Plottergeist")
Plottergeist.CloseApp

Exit_RunPlottergeist_Click:
Exit Sub

Err_RunPlottergeist_Click:
MsgBox Err.Description
Resume Exit_RunPlottergeist_Click

End Sub

Once the command button has been selected the graphics
software opens and retrieves the data producing a plot,
however as explained above, until I close this package
again using the "OK" button on the Message Box "Click to
Close Plottergeist" I cannot look at any other data
within the other subforms, the main form, or to Access
the rest of the Database.

I have tried Deleting the Message box, but this does not
cure the problem since another message box appears,
"Microsoft Access", with a OK Button.

From a functional view point or aim, we need to select
any one or more records on the main Form, then to
retrieve a graphics image for those records, and to
analyse other data within the database.
Therefore it requires more than one Graphics image to be
displayed and at the same time to be able to analyse
other data within the database.
Finally, we are trying to reduce the amount of steps we
have to use to retrieve, analyse and save the right
Graphics plots with the right data.
I hope this helps

p.s. I am a novice when it comes to VB

TKS
...............................

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
1 1812
Aged wrote:
Hi

I have asked several groups now for advise but I feel I must be
confusing either them or myself, but anyway here goes!

Below is code taken from the "OnClick" function of a
command button within a Sub-form called Plots.
This Sub-form resides along side six other Sub-forms
within the Details section of a main form called Session
Header.I require to be able to go into any of these
subforms at any given time, unfortunately I have one
problem which prevents me from doing this and it occurs
when I am in the Subform "Plots", if I select one of the
Records of this subform and retrieve the data using a
Graphics Software Application, although it pulls up the
plot onto the screen I cannot then go into any of the
other subforms to analyse the data for the Plot I select.
The small Routine as mentioned previously is shown here:

Private Sub RunPlottergeist_Click()
On Error GoTo Err_RunPlottergeist_Click
Dim Freq As String
Dim Plottergeist As PltgeistX
Set Plottergeist = CreateObject("Pltgeist.PltgeistX")

'Sets Plottergeist to run in mode for resultant Plot for
this application
Plottergeist.Window_State "Norm"
HPGL_Data.SetFocus
Plottergeist.AddHPGL (HPGL_Data.Text) 'HPGL data
'Originating from HP Analyzer
Plottergeist.CopyGraphicToClipBoard 'Note. Max of 24 Plots

'AppActivate "Microsoft Access"
'DoCmd.GoToControl "SignalPassFail"
'Freq.SetFocus
'Assistant.Reduced = True
MsgBox ("Click To Close Plottergeist")
Plottergeist.CloseApp

Exit_RunPlottergeist_Click:
Exit Sub

Err_RunPlottergeist_Click:
MsgBox Err.Description
Resume Exit_RunPlottergeist_Click

End Sub

Once the command button has been selected the graphics
software opens and retrieves the data producing a plot,
however as explained above, until I close this package
again using the "OK" button on the Message Box "Click to
Close Plottergeist" I cannot look at any other data
within the other subforms, the main form, or to Access
the rest of the Database.

I have tried Deleting the Message box, but this does not
cure the problem since another message box appears,
"Microsoft Access", with a OK Button.

From a functional view point or aim, we need to select
any one or more records on the main Form, then to
retrieve a graphics image for those records, and to
analyse other data within the database.
Therefore it requires more than one Graphics image to be
displayed and at the same time to be able to analyse
other data within the database.
Finally, we are trying to reduce the amount of steps we
have to use to retrieve, analyse and save the right
Graphics plots with the right data.
I hope this helps

p.s. I am a novice when it comes to VB

TKS
..............................

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


You gave a good description of your problem. But I would like a
clarification. The plot file is not "inserted" in the subform but
rather is opened in an external program Plotergeist?

IOW, you want to view the plot file from an external program. Let's say
you have a file called Plot1.Plt. Can you, in Explorer, click on
Plot1.Plt and have it open the requistite program to view the plot? If
that is possible, see the following:
http://www.mvps.org/access/api/api0018.htm. This allows you to open a
registered file (files with this extension open up a specific program)
Also see http://www.mvps.org/access/api/api0001.htm and
http://www.mvps.org/access/api/api0002.htm. These are File/Open dialog
boxes to select a file. Basically, you click on the Modules tab, click
New, and paste the code for each API call into a separate module.

Also, look at the command ShellExecute in help. This will open a new
application. I should think you could pass the application name and an
argument. Ex: "TEst Test1.Txt" that opens app Test and Test app opens
the file TEst1.Txt.

If you can't view a plot file using a registered file type, perhaps you
need to empty the clipboard. I went to http://groups.google.com,
clicked on advanced search, and entered
CopyGraphicToClipBoard
in the words to search for and
*access*
in the groups to search.

Someone using the handle NickH had a vey similar problem but that was
back in 2003. Can you store the plot in an image control? Copy the
image then paste it somewhere?

Are your plot files actually print files?

Also, I mentioned ShellExecute. If you can open the file via that
method you could also store the info as a hyperlink field in your table.
See HyperlinkPart() in help to see how you can extract what is
displayed to the user and the file name.

Sorry I can't be of more help.

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: erik | last post by:
Hi How can I egt all my data from my Access2002/XP-database over in a MySQL-database ? -- Erik R Nielsen Denmark
14
by: Mark | last post by:
Yes, my family business wants to create an accounting database to keep track of invoices, production, inventory, man hours, etc.... There will be two kinds of users to access the database, on two...
2
by: Aged | last post by:
Hi I have asked several groups now for advise but I feel I must be confusing either them or myself, but anyway here goes! Below is code taken from the "OnClick" function of a command button...
0
by: Martin Reikenkamp | last post by:
Hallo, ich versuche gerade vergeblich eine XML-Datei (s.u.) in Access2002 zu importieren. Leider kommt nur die Struktur in der Access-Tabelle an und keine Daten (obwohl "Struktur und Daten"...
1
by: Bogdan Zamfir | last post by:
Hi, I have big troubles with an Access2002 application I wrote it under Acc2002 Romanian, and try to run it on Acc2002 US version, and I have the following troubles For some forms, Load event...
3
by: Rich | last post by:
I converted my A2K database(FE)to Access2002. It's a secured database, splitted to FE and BE. After the conversion, I cannot make MDE file. It says:"microsoft access ha encourted a problem and...
5
by: laurenq uantrell | last post by:
I am using a control MyTotal on a subform footer to get a sum of all rows on the subform: =Sum() On the main form I have a control whose controlsource is: =Forms!FormName.Child.Form.MyTotal. This...
1
by: samrat | last post by:
can we creat speech apllication using sdk beta 2 s/w and without using internet explorer
2
by: Steve | last post by:
I have been asked to convert an Access2002 database to Access2007. The database is used to manage a medium sized company. The company contact said that the existing database was put on a new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.