Advertisement
Advertisement
| 03.06.2008 at 03:27PM PST, ID: 23221513 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 03.06.2008 at 06:26PM PST, ID: 21066779 |
| 03.06.2008 at 07:35PM PST, ID: 21067145 |
| 03.07.2008 at 12:25AM PST, ID: 21068259 |
| 03.07.2008 at 12:26AM PST, ID: 21068269 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: |
Function ObjectProperty(objDao As Object, strName As String) As Variant
' Returns an object property, or null if non-existant
On Error Resume Next
ObjectProperty = Null
ObjectProperty = objDao.Properties(strName).Value
End Function
Function SetProperty( _
objDao As Object, _
strName As String, _
varValue As Variant, _
Optional pintType As DAO.DataTypeEnum = dbText _
) As Boolean
' Sets or creates an object property
' Returns true if successful
Dim prp As DAO.Property
On Error Resume Next
If Nz(varValue) = "" Then
Set prp = objDao.Properties(strName)
If Err Then
If Err = 3270 Then
SetProperty = True
Err.Clear
End If
Else
objDao.Properties.Delete strName
If Err.Number = 3384 Then ' Built-in Property
Err.Clear
objDao.Properties(strName) = ""
End If
SetProperty = (Err.Number = 0)
End If
Else
If ObjectProperty(objDao, strName) = varValue Then
SetProperty = True
Else
objDao.Properties(strName).Value = varValue
If Err.Number = 3270 Then ' property not found
Err.Clear
Set prp = objDao.CreateProperty(strName, pintType, (varValue))
objDao.Properties.Append prp
End If
SetProperty = (Err.Number = 0)
End If
End If
If Err Then
MsgBox Err.Description, vbCritical, "Set Property: " & Err.Number
Err.Clear
End If
End Function
Sub MakeCombo()
' sample according to your specifications
Dim fld As DAO.Field
Set fld = DBEngine(0)(0)("Table1")("DeptCode")
SetProperty fld, "DisplayControl", acComboBox, dbInteger
SetProperty fld, "RowSource", "SELECT PROJ_DPT.Dept_Code, PROJ_DPT.Dept_Name FROM PROJ_DPT", dbMemo
SetProperty fld, "ColumnCount", 2, dbInteger
SetProperty fld, "ColumnWidths", "0.5"";1""", dbText
SetProperty fld, "ListWidth", "4""", dbText
End Sub
|
| 03.07.2008 at 12:58AM PST, ID: 21068369 |
| 03.07.2008 at 01:17AM PST, ID: 21068454 |