Hello, I'm going mad, a usuall action cause error:
Sub
Dim db as Database
dim lp as Recordset
set db=CurrentDb
set lp=db.OpenRecordsourse("SomeTable")
With lp
...
end with
close lp
end Sub
All this perfectly worked in all my previous Access projects, but now it doesn't and cause a error User-defined type not defined (in the following string "dim db as database"). If I try to enter listing again the autofill doesn't show type Database. But at the same time old files still work without any errors. What's the problem.
Please say that I'm wrong somewhere or I will crush this damn computer.
Thanks.
Sub
Dim db as Database
dim lp as Recordset
set db=CurrentDb
set lp=db.OpenRecordsourse("SomeTable")
With lp
...
end with
close lp
end Sub
All this perfectly worked in all my previous Access projects, but now it doesn't and cause a error User-defined type not defined (in the following string "dim db as database"). If I try to enter listing again the autofill doesn't show type Database. But at the same time old files still work without any errors. What's the problem.
Please say that I'm wrong somewhere or I will crush this damn computer.
Thanks.