so I have this continous form...
and field txtUnit.
I would like to create a command button
which will open an Excel files only if
txtunit = "condition1"
eventually i would like to create about 3 command boxes,
which will open different excel file depending on the
value of the txtUnit.
ie. lets say the form is listing 3 forms(cont form so of course some fields are different) and they all
have different value for txtUnit(not unique)
listing1 = No. of visitors (value of txtUnit)
listing2 = No. of members
listing3 = No. of products
so i would like to do
If Me.txtUnit = "No. of Visitors" Then
open "spreadsheet1"
If me.txtUnit = "No. of members" Then
open "spreadsheet2"
first problem is that only way i know how to open
excel data is to use the "hyperlink" in properties..
another problem is that when i tried doing
If Me.txtUnit = "No. of Visitors" Then
Me.txt = "0"
i noticed that it makes the if statement true as long
as one of the form has "No. of Visitors"
I know I am making very complicated statement but
can this be done?
//condition 1 -> open a.xls
//condition 2 -> open b.xls
etc
am i making sense?? T_T
and field txtUnit.
I would like to create a command button
which will open an Excel files only if
txtunit = "condition1"
eventually i would like to create about 3 command boxes,
which will open different excel file depending on the
value of the txtUnit.
ie. lets say the form is listing 3 forms(cont form so of course some fields are different) and they all
have different value for txtUnit(not unique)
listing1 = No. of visitors (value of txtUnit)
listing2 = No. of members
listing3 = No. of products
so i would like to do
If Me.txtUnit = "No. of Visitors" Then
open "spreadsheet1"
If me.txtUnit = "No. of members" Then
open "spreadsheet2"
first problem is that only way i know how to open
excel data is to use the "hyperlink" in properties..
another problem is that when i tried doing
If Me.txtUnit = "No. of Visitors" Then
Me.txt = "0"
i noticed that it makes the if statement true as long
as one of the form has "No. of Visitors"
I know I am making very complicated statement but
can this be done?
//condition 1 -> open a.xls
//condition 2 -> open b.xls
etc
am i making sense?? T_T