Programming Tips

Set Default Page Setup in ReportViewer

Dim pg As New System.Drawing.Printing.PageSettings()     pg.Margins.Top = 0     pg.Margins.Bottom = 0.25                p…

Get Distinct Maximum Date

Get Distinct Maximum Date Display the latest order of each customers. SELECT A.CustomerID, OrderDate, EmployeeID, Shippe…

VB.Net Message Box Modal

MsgBox("Modal Message", MsgBoxStyle.SystemModal + MsgBoxStyle.Exclamation, "VB.Net Message Box Modal")

Get Windows User Full Name in VB 6

Code in getting the windows user's fullname. Dim strComputer As String Dim strUserName As String Dim objUser As Obje…

Multiple JOIN in MS Access

When you query a multiple join in MSSQL you use this following query: SELECT a.columna, b.columnb, c.columnc FROM tablea …

SQL Time Difference

Subtracting Date Time in MSSQL --YEAR SELECT DATEDIFF(year, '2012-12-31', '2013-01-01') --Quarter SE…

VB 6 Send Email

VB Send Email with a HTML Format body Private Sub Command1_Click() Dim EmailList, Mailbod As String, Myfile Dim objOutlo…

Disable/Enable MS Access Ribbon

When your developing an MS Access application make sure you remove the Ribbon so that your application looks clean. Here&#…

Load More
That is All