D
Del
I'm learning to create QueryDefs from a book which has the following code. I
understand what everything is doing except the line "MakeQueryDef = True".
Function MakeQueryDef(strSQL As String) As Boolean
Dim qdf As QueryDef
If strSQL = ҠThen Exit Function
Set qdf = CurrentDb.CreateQueryDef(“QueryNameâ€)
qdf.SQL = strSQL
qdf.Close
RefreshDatabaseWindow
MakeQueryDef = True
End Function
Can someone explain it to me?
understand what everything is doing except the line "MakeQueryDef = True".
Function MakeQueryDef(strSQL As String) As Boolean
Dim qdf As QueryDef
If strSQL = ҠThen Exit Function
Set qdf = CurrentDb.CreateQueryDef(“QueryNameâ€)
qdf.SQL = strSQL
qdf.Close
RefreshDatabaseWindow
MakeQueryDef = True
End Function
Can someone explain it to me?