A
after.effect.27
I dont have much experience with visual basic or Microsoft Access, so
heres my problem.
I am converting old databases from access 97 ot 2003, and I have
successfully done it. Now, I'm going through each form to see if it
works the same way it used to. Everything was good until I came across
a print function.
I get this error:
Compile Error: User-Defined type not defined.
It then leads me to this section of code:
Function PrintVoucher(Sarg As String)
Dim db As Databased, ds As Dynaset
If Sarg = "S" Then
Set db = CurrentDb()
Set ds = db.CreateDynaset("vouchquery")
msg = "Please enter voucher number to print"
title = "Voucher Request"
answer = InputBox$(msg, title)
If Len(answer) = 0 Then
Exit Function
The printer is an Epson FX 880 Dot Matrix, and thats not the problem to
my knowledge. If anyone has any clue on how I can get this to print,
please fill me in.
Here are screenshots of what I am doing:
This is where i press the print button.
http://i4.photobucket.com/albums/y102/xmav27x/error1.jpg
This is what comes up.
http://i4.photobucket.com/albums/y102/xmav27x/error2.jpg
Thanks.
heres my problem.
I am converting old databases from access 97 ot 2003, and I have
successfully done it. Now, I'm going through each form to see if it
works the same way it used to. Everything was good until I came across
a print function.
I get this error:
Compile Error: User-Defined type not defined.
It then leads me to this section of code:
Function PrintVoucher(Sarg As String)
Dim db As Databased, ds As Dynaset
If Sarg = "S" Then
Set db = CurrentDb()
Set ds = db.CreateDynaset("vouchquery")
msg = "Please enter voucher number to print"
title = "Voucher Request"
answer = InputBox$(msg, title)
If Len(answer) = 0 Then
Exit Function
The printer is an Epson FX 880 Dot Matrix, and thats not the problem to
my knowledge. If anyone has any clue on how I can get this to print,
please fill me in.
Here are screenshots of what I am doing:
This is where i press the print button.
http://i4.photobucket.com/albums/y102/xmav27x/error1.jpg
This is what comes up.
http://i4.photobucket.com/albums/y102/xmav27x/error2.jpg
Thanks.