Connecting Tech Pros Worldwide Forums | Help | Site Map

OpenDialog?

Geir Baardsen
Guest
 
Posts: n/a
#1: Nov 13 '05
Hi!

Is there an equivalent of "OpenDialog" in Delphi that can be found in
MS ACCESS 2000?

Me.Name

Jean
Guest
 
Posts: n/a
#2: Nov 13 '05

re: OpenDialog?


Hi Geir,

I think you might be looking for the function InputBox:

InputBox Function Example

The following example uses the InputBox function to return the user's
name. Note that you can't open a Help file from a dialog box created by
the InputBox function in Microsoft Access.

Sub Greeting()
Dim strInput As String, strMsg As String

strMsg = "Enter your name."
strInput = InputBox(Prompt:=strMsg, _
Title:="User Info", XPos:=2000, YPos:=2000)
MsgBox "Hello, " & strInput
End Sub


Regards,

Jean

zabutimaxim@gmail.com
Guest
 
Posts: n/a
#3: Nov 13 '05

re: OpenDialog?


Just add Microsoft Common Dialog component to tollbox, then drag it to
your form.
dlg.ShowOpen will do the job.

pietlinden@hotmail.com
Guest
 
Posts: n/a
#4: Nov 13 '05

re: OpenDialog?


better to use the OpenSaveFile API code from AccessWeb. it's the first
under the API section.

Douglas J. Steele
Guest
 
Posts: n/a
#5: Nov 13 '05

re: OpenDialog?


Use the API approach illustrated at
http://www.mvps.org/access/api/api0001.htm at "The Access Web".

While it may appear overwhelming at first, it's far more reliable than any
other approach.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Geir Baardsen" <geir_baardsen@hotmail.com> wrote in message
news:35f9d8b7.0504172105.5485427b@posting.google.c om...[color=blue]
> Hi!
>
> Is there an equivalent of "OpenDialog" in Delphi that can be found in
> MS ACCESS 2000?
>
> Me.Name[/color]


Closed Thread