using a value in a table field to open an external program 
Author Message
 using a value in a table field to open an external program

hello,

I am trying to program a button on a form. This button opens an external
program (i use shell to do this). The problem is that the name of the
external program is stored in a table (within the database) called
"parameters". This table has only one record with a few parameters I need in
the database-application. So I need to retrieve the value of the field "path
to external program" (from the table parameters) in my code for the
click-event on the button.
Thanks in advance.

Kurt



Sun, 26 Jun 2005 07:45:50 GMT  
 using a value in a table field to open an external program
You might want to consider making "path to external program" a public
constant by declaring it in the General section of any standard module, like
so:

' Declare Public constant.
Public Const EXT_PROG_PATH = "Value from your data table"

Then, you can use EXT_PROG_PATH like any other variable.

hth,
--
Cheryl Fischer
Law/Sys Associates
Houston, TX


Quote:
> hello,

> I am trying to program a button on a form. This button opens an external
> program (i use shell to do this). The problem is that the name of the
> external program is stored in a table (within the database) called
> "parameters". This table has only one record with a few parameters I need
in
> the database-application. So I need to retrieve the value of the field
"path
> to external program" (from the table parameters) in my code for the
> click-event on the button.
> Thanks in advance.

> Kurt



Sun, 26 Jun 2005 10:50:08 GMT  
 using a value in a table field to open an external program

BUTTON {*filter*}TON!!!!!   WHO CARES!!!!!!!


Quote:

> hello,

> I am trying to program a button on a form. This button opens an external
> program (i use shell to do this). The problem is that the name of the
> external program is stored in a table (within the database) called
> "parameters". This table has only one record with a few parameters I need in
> the database-application. So I need to retrieve the value of the field "path
> to external program" (from the table parameters) in my code for the
> click-event on the button.
> Thanks in advance.

> Kurt



Sun, 26 Jun 2005 10:53:02 GMT  
 using a value in a table field to open an external program

Re: using a value in a table field to open an external programHello,

From looking at a couple of your other replies to questions in this NewsGroup, it appears that you are concerned that the "posts" or messages in this NewsGroup are being sent to you maliciously.  Nothing could be farther from the truth.  

Perhaps you or someone who uses your computer inadvertently signed up or subscribed to this NewsGroup.  If that is the case, you will see in your Outlook Express Folders column a list of folders beginning with "microsoft.public.access ..." .  If you do not want to see message traffic from this or any other NewsGroup, simply right-click on its folder and select "Unsubscribe".


  BUTTON {*filter*}TON!!!!!   WHO CARES!!!!!!!


  > hello,
  >
  > I am trying to program a button on a form. This button opens an external
  > program (i use shell to do this). The problem is that the name of the
  > external program is stored in a table (within the database) called
  > "parameters". This table has only one record with a few parameters I need in
  > the database-application. So I need to retrieve the value of the field "path
  > to external program" (from the table parameters) in my code for the
  > click-event on the button.
  > Thanks in advance.
  >
  > Kurt
  >
  >
  >
  >



Sun, 26 Jun 2005 11:16:19 GMT  
 using a value in a table field to open an external program
(NGs trimmed)

You can either use the DLookUp function or Recordset to retrieve the Table
Field Value, i.e. your required pathname to be used in your Shell code.

Check Access Help on the DLookUp function.

--
HTH
Van T. Dinh
MVP (Access)


Quote:
> hello,

> I am trying to program a button on a form. This button opens an external
> program (i use shell to do this). The problem is that the name of the
> external program is stored in a table (within the database) called
> "parameters". This table has only one record with a few parameters I need
in
> the database-application. So I need to retrieve the value of the field
"path
> to external program" (from the table parameters) in my code for the
> click-event on the button.
> Thanks in advance.

> Kurt



Mon, 27 Jun 2005 20:16:02 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Possible to open an external program using VBScript?

2. Possible to open an external program using VBScript?

3. HowTo get max field value from Access table field

4. Newbie Warning - How to lookup value x in external table and return y

5. Get return value from a external exe program

6. How to Filter an external query, shown in combo box, by field in table

7. Opening external file with associated program

8. Question on Opening External programs

9. Opening an external application from within a VB program

10. Copying Fields using Field.Value

11. Cannot open a table because table name uses accent letter

12. Copy fields from record in table A to record in table B using VBA

 

 
Powered by phpBB® Forum Software