G
geek
i've come across the error message stating "Compile Error. User defined type
not defined." how do i go about solving this problem? the codes are as below:
for your information, i'm using office 2003.
thanks!
Option Compare Database
Option Explicit
Function M_Date_check()
Dim db As Database
Dim ds As Recordset
Dim Mysql As String
Dim Current_Y As Integer, Current_M As Integer
Dim I As Integer
Set db = CurrentDb
Mysql = "Year_Month_Data_M"
Set ds = db.OpenRecordset(Mysql, dbOpenDynaset)
Current_Y = Val(ds![Year])
Current_M = Val(ds![Month])
ds.Close
End Function
not defined." how do i go about solving this problem? the codes are as below:
for your information, i'm using office 2003.
thanks!
Option Compare Database
Option Explicit
Function M_Date_check()
Dim db As Database
Dim ds As Recordset
Dim Mysql As String
Dim Current_Y As Integer, Current_M As Integer
Dim I As Integer
Set db = CurrentDb
Mysql = "Year_Month_Data_M"
Set ds = db.OpenRecordset(Mysql, dbOpenDynaset)
Current_Y = Val(ds![Year])
Current_M = Val(ds![Month])
ds.Close
End Function