Posts
Showing posts from October, 2011
Set images path in access
- Get link
- X
- Other Apps
Function setImagePath() Dim strImagePath As String On Error GoTo PictureNotAvailable strImagePath = Me.memProperyPhotoLink Me.memProperyPhotoLink.Locked = True Me.memProperyPhotoLink.Enabled = False Me.ImageFrame.Picture = strImagePath Exit Function PictureNotAvailable: strImagePath = "C:\db_Images\NoImage.gif" Me.ImageFrame.Picture = strImagePath End Function
Add image in MS-Access
- Get link
- X
- Other Apps
Private Sub cmdAddImage_Click() On Error GoTo cmdAddImage_Err Dim strFilter As String Dim lngflags As Long Dim varFileName As Variant strFilter = "All Files (*.*)" & vbNullChar & "*.*" _ & vbNullChar & "All Files (*.*)" & vbNullChar & "*.*" lngflags = tscFNPathMustExist Or tscFNFileMustExist _ Or tscFNHideReadOnly varFileName = tsGetFileFromUser( _ fOpenFile:=True, _ strFilter:=strFilter, _ ...
Color Function in excel sheet
- Get link
- X
- Other Apps
Function ColorFunction(rColor As Range, rRange As Range, Optional SUM As Boolean) Dim rCell As Range Dim lCol As Long Dim vResult lCol = rColor.Interior.ColorIndex If SUM = True Then For Each rCell In rRange If rCell.Interior.ColorIndex = lCol Then vResult = WorksheetFunction.SUM(rCell) + vResult End If Next rCell Else For Each rCell In rRange If rCell.Interior.ColorIndex = lCol Then vResult = 1 + vResult End If Next rCell End If ...