Can someone please tell me what's wrong with this code. Been working on it for hours.
VB Code:
  1. Dim sConnString As String
  2.     Dim rsTempRecordSet As New ADODB.Recordset
  3.     Dim cnTeamCMI As New ADODB.Connection
  4.     Dim sSQl As String
  5.     strConnString = "Driver= {MicrosoftAccessDriver(*.mdb)};DBQ=C:\Documents and Settings\ÅÓáÇã\ÓØÍ ÇáãßÊÈ\ÈÑäÇãÌ ÇáÍÖæÑ æ ÇáÇäÕÑÇÝ\database.mdb;Uid=Your_Username;Pwd=Your_Password;"
  6.     With cnTeamCMI
  7.         .ConnectionString = sConnString
  8.         .ConnectionTimeout = 0
  9.         .CursorLocation = adUseClient
  10.         .Open
  11.     End With
  12.         sSQl = "SELECT [ÑÕíÏ ÇáÅÌÇÒÇÊ] FROM [ÇáÅÏÇÑí] WHERE [ÇÓã ÇáÚÇãá] = '" & lstMngment.List(lstMngment.ListIndex) & "', ADOCn"
  13.         rsTempRecordSet.Open sSQl, cnTeamCMI, adOpenStatic, adLockReadOnly
  14. With rsTempRecordSet
  15.  
  16.     If .Fields("ÑÕíÏ ÇáÅÌÇÒÇÊ") = "9" Then
  17.         cmdMGTHoliday.Enabled = False
  18.     Else
  19.         cmdMGTHoliday.Enabled = True
  20.     End If
  21. End With
  22. rsTempRecordSet.Close
  23. Set rsTempRecordSet = Nothing
  24. Set cnTeamCMI = Nothing
The error seems to be at the line ".open" where it tells me that it cannot find the record source (something like as I get the error message in Arabic).
Any suggestions would be greatly appreciated. Thanx in advance