473,396 Members | 1,834 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,396 software developers and data experts.

Why Two Windows Dialog Boxes for OuputTo?

I just changed my previous Access 97 ActiveX controls that I was using
for the OutputTo actions to API Calls. Apparently, I'm not there yet
as I am having difficulty with two items.

The first is a nuisance. Now the OutputTo brings up the GetOpenFile
Windows Dialog Box and whether you type in a file name or not, it is
superceded by a similar "Output To" Dialog Box where you need to type
in the file name again before it is saved. This is a pain. Is there a
workaround for this issue? And if so, how is it done?

The second item appears to be a strange problem. I'm able to save the
query OutputTo to the hard drive, but it cannot be saved to a floppy
disk. Yes, the drive works and using the old ActiveX control, the
files can be save to disk. The drive is activated during the save
process and appears to a have worked, but there is no output! Can
anyone explain this and how to resolve it?

Here is the code that I'm using:

Private Sub cmdCopy_Click()

DoCmd.OutputTo acOutputQuery, "Data", acFormatHTML, "", _
True, "C:\Program Files\Databases\Template\DataTemplate.html" _
= GetOpenFile("A:\", "Ignore First Dialog Proceed to Second One")

End Sub

Anyone's assistance in this perplexing matter will be appreciated.
Thanks, Dalan
Nov 12 '05 #1
2 1384
Dalan wrote:
I just changed my previous Access 97 ActiveX controls that I was using
for the OutputTo actions to API Calls. Apparently, I'm not there yet
as I am having difficulty with two items.

The first is a nuisance. Now the OutputTo brings up the GetOpenFile
Windows Dialog Box and whether you type in a file name or not, it is
superceded by a similar "Output To" Dialog Box where you need to type
in the file name again before it is saved. This is a pain. Is there a
workaround for this issue? And if so, how is it done?

The second item appears to be a strange problem. I'm able to save the
query OutputTo to the hard drive, but it cannot be saved to a floppy
disk. Yes, the drive works and using the old ActiveX control, the
files can be save to disk. The drive is activated during the save
process and appears to a have worked, but there is no output! Can
anyone explain this and how to resolve it?

Here is the code that I'm using:

Private Sub cmdCopy_Click()

DoCmd.OutputTo acOutputQuery, "Data", acFormatHTML, "", _
True, "C:\Program Files\Databases\Template\DataTemplate.html" _
= GetOpenFile("A:\", "Ignore First Dialog Proceed to Second One")

End Sub

Anyone's assistance in this perplexing matter will be appreciated.
Thanks, Dalan


Why don't you call the GetOpenFile() prior to the OutPutTo?
Dim strFile As STring
strFile = GetOpenFile(.....)
If strFile <> "" Then Docmd.OutPutTo......
and substitute strFile for =GetOpenFile(). I don't recall of the top of
my head if the return of GetOpenFile is a string or variant or "" or Nul.
If variant, modify and check for Null if that is returned.
Nov 12 '05 #2
Salad <oi*@vinegar.com> wrote in message news:<40***************@vinegar.com>...

Why don't you call the GetOpenFile() prior to the OutPutTo?
Dim strFile As STring
strFile = GetOpenFile(.....)
If strFile <> "" Then Docmd.OutPutTo......
and substitute strFile for =GetOpenFile(). I don't recall of the top of
my head if the return of GetOpenFile is a string or variant or "" or Nul.
If variant, modify and check for Null if that is returned.

I tried this and variations to the same theme, but still not resolved.
Leaving the save as file name as "" in the OutputTo string does bring
up the OutputTo dialog box for entering the file name before saving.
If a file name is included, then OutputTo box does not appear, but
also nothing gets written to disk either. I have tried just about
every option in restructing the code and the OutputTo action in an
effort to get it to work, but to no avail.

Any further suggestions would be welcomed. Thanks.
Nov 12 '05 #3

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

Similar topics

1
by: bill ramsay | last post by:
Dear all. I am using an existing hodge-podge of an application that runs on top of an Access database. This application dials up customer equipment, handshakes then downloads/uploads various...
2
by: Dennis C. Drumm | last post by:
I have a window form dialog that I use in a non modal fashion. It is displayed using Show() in stead of ShowDialog() from the parent windows form application. I have TextBoxes in that dialog that...
4
by: Tamir Khason | last post by:
Is it possible? or just my fantasy? I did it before with cpp. Handle and change base classes such as dialogs, windows etc. Is it possible to do with C#? Someone knows good reference to such kind...
6
by: flaus.a | last post by:
I found a way to create "Open File" or "Open Folder" windows dialog boxes, but not to create an easier Yes / No dialog box... Maybe someone has a solution for this?
113
by: dan | last post by:
For writing a Windows desktop application, how much harder is it to use the Windows C API than C#/.NET, assuming the coding is done in an editor? What specific aspects were more difficult? I'm...
11
by: geoffbache | last post by:
Hi, As part of my efforts to write a test tool that copes with GUIs nicely, I'm trying to establish how I can start a GUI process on Windows that will not bring up the window. So I try to hide...
1
by: nido | last post by:
Develop a windows based drawing application. This application is used for drawing different primitive figures with different colors, brushes, x coordinate, y coordinate and other different...
2
by: one.1more | last post by:
I want to make a text game using javascript dialog boxes. i learned about confirm boxes but its not helpful(http:// www.javascriptmall.com/learn/lesson6.htm) 1. for ex, in the confirm boxes,...
3
by: Mike Hofer | last post by:
Okay, here's the situation: we want to be able to display ASPX pages in an UpdatePanel. The reasons for this are performance related. The site in development uses *lots* of modal popups from some...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.