G
Guest
I have problem with this error:
9. Subscript out of range on line
Set rst = PlaningDB.OpenRecordset(SQL)
Dim rst As Recordset
SQL string is
"
SELECT * FROM
t_real, t_pracovnici, t_nakladove_strediska WHERE
t_real.n_pracovnik = t_pracovnici.n_id AND
t_real.n_ns = t_nakladove_strediska.n_id AND
(t_real.n_ns IN(1,9)) AND
((t_real.n_rok = 2004 AND t_real.n_mesiac >= 12) OR
( t_real.n_rok = 2005 AND t_real.n_mesiac <= 1))
ORDER BY t_real.n_rok, t_real.n_mesiac, t_real.n_ns
"
It works at my PC, but not works at another PC. I think that the reason is
in different Settings of MS ACCESS, because we have the same version (Access
2000).
Can you help me? How, where, or what should I to set?
(Settings,Library,ActiveX controls,...)?
9. Subscript out of range on line
Set rst = PlaningDB.OpenRecordset(SQL)
Dim rst As Recordset
SQL string is
"
SELECT * FROM
t_real, t_pracovnici, t_nakladove_strediska WHERE
t_real.n_pracovnik = t_pracovnici.n_id AND
t_real.n_ns = t_nakladove_strediska.n_id AND
(t_real.n_ns IN(1,9)) AND
((t_real.n_rok = 2004 AND t_real.n_mesiac >= 12) OR
( t_real.n_rok = 2005 AND t_real.n_mesiac <= 1))
ORDER BY t_real.n_rok, t_real.n_mesiac, t_real.n_ns
"
It works at my PC, but not works at another PC. I think that the reason is
in different Settings of MS ACCESS, because we have the same version (Access
2000).
Can you help me? How, where, or what should I to set?
(Settings,Library,ActiveX controls,...)?