با سلام با اینکه همچنان این ارور دریافت میشود ولی در حال حاضر سئوالم در مورد اجزای این فانکشن است ( اگر بخواهیم جایگزین کد بالا برای خلاصی از ارور دریافت شده بکنیم)
Function RepairDatabase(strSource As String, _
strDestination As String) As Boolean
' Input values: the paths and file names of
' the source and destination files.
' Trap for errors.
On Error GoTo error_handler
' Compact and repair the database. Use the return value of
' the CompactRepair method to determine if the file was
' successfully compacted.
RepairDatabase = _
Application.CompactRepair( _
LogFile:=True, _
SourceFile:=strSource, _
DestinationFile:=strDestination)
' Reset the error trap and exit the function.
On Error GoTo 0
Exit Function
' Return False if an error occurs.
error_handler:
RepairDatabase = False
End Function
معنی اجزای این فاکشن چیست یعنی در قسمت «strSource» ودرقسمت «strDestination» چه باید قرارداد
لازم به یادآوری هست که این فانکشن مربوط به خود اکسس میباشد و دراکسس 2010 میخواهم استفاده کنم
با تشکر