E
edisonl via AccessMonster.com
Edison: Help! Help!
1. I had a leave applicantion where Manager able to view their Department
Leave status (Eg: Summay, History Transactions etc)
2. I had achieve it via Queries.
3. Now another issue is I need to PROGRAMATICALLY insert SQL statement to
allow HR View All,
I copied the statement from previous Queries made some modifications,
then do a
strsql = "SELECT AnnualLeave_Table.FromDate...... WHERE ((
(AnnualLeave_Table.FromDate)& _
"Between [Forms]![ViewLeave_Form]![From_Text] And [Forms]![ViewLeave_Form]!
[To_Text])) " & _
"Order By annualLeave_Table.Name;"
a = msgbox (strsql)
currentdb.execute strsql
'OUTPUT >> though I did a display of the strsql output prior to execute
sql
Run time Error'3065'
Cannot execute Select statement
Help! Help!
Edison
1. I had a leave applicantion where Manager able to view their Department
Leave status (Eg: Summay, History Transactions etc)
2. I had achieve it via Queries.
3. Now another issue is I need to PROGRAMATICALLY insert SQL statement to
allow HR View All,
I copied the statement from previous Queries made some modifications,
then do a
strsql = "SELECT AnnualLeave_Table.FromDate...... WHERE ((
(AnnualLeave_Table.FromDate)& _
"Between [Forms]![ViewLeave_Form]![From_Text] And [Forms]![ViewLeave_Form]!
[To_Text])) " & _
"Order By annualLeave_Table.Name;"
a = msgbox (strsql)
currentdb.execute strsql
'OUTPUT >> though I did a display of the strsql output prior to execute
sql
Run time Error'3065'
Cannot execute Select statement
Help! Help!
Edison