Hi,
I have a big problem with a form. I'm not sure that the problem is but this is what happened.
I had a module that built a query if it did not exist but then I found a better way to do it so I delete the old code and replaced with the new and deleted the module. That was ok in my office 2003 computer but when I changed to windows xp Pro like the other users so we would be on the same version now I keep getting a message that it can't find the DLL or just crashing.
The module I used was this:
Public Function QueryExists(QueryName As String) As Boolean
' Checks for the existence of a query (named as QueryName)
' and returns true if query exists.
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
QueryExists = False
Set db = CurrentDb
For Each qdf In db.QueryDefs
If qdf.Name = QueryName Then
QueryExists = True
Exit Function
End If
Next qdf
End Function
If this is not the problem then maybe a function I got here might need a reference?:
Public Function AllSum()
Dim ctl As Control, hldSum
For Each ctl In Me.Controls
If ctl.Tag = "?" Then
hldSum = hldSum + Nz(ctl)
End If
Next
AllSum = hldSum
End Function.
It worked well in my Office 2003 version but now It is so irratic opening one minute and then just crashing. Can anyone shed any light on this.
I have a big problem with a form. I'm not sure that the problem is but this is what happened.
I had a module that built a query if it did not exist but then I found a better way to do it so I delete the old code and replaced with the new and deleted the module. That was ok in my office 2003 computer but when I changed to windows xp Pro like the other users so we would be on the same version now I keep getting a message that it can't find the DLL or just crashing.
The module I used was this:
Public Function QueryExists(QueryName As String) As Boolean
' Checks for the existence of a query (named as QueryName)
' and returns true if query exists.
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
QueryExists = False
Set db = CurrentDb
For Each qdf In db.QueryDefs
If qdf.Name = QueryName Then
QueryExists = True
Exit Function
End If
Next qdf
End Function
If this is not the problem then maybe a function I got here might need a reference?:
Public Function AllSum()
Dim ctl As Control, hldSum
For Each ctl In Me.Controls
If ctl.Tag = "?" Then
hldSum = hldSum + Nz(ctl)
End If
Next
AllSum = hldSum
End Function.
It worked well in my Office 2003 version but now It is so irratic opening one minute and then just crashing. Can anyone shed any light on this.