Skip to content

Display date values as column

Below is my code to display date values as column name. But it won’t get the new data of the next month unless encoded in Pivot values. How should I do it dynamically? Below is the sample output. Answer You could use “real” dynamic SQL: First get your list of months and store it into a nvarc…

Calculate time duration in 2 columns

I want to calculate time in 2 column(column STATUSIN and column STATUSOUT) and place the value in column WORKINGHOUR as datetime. This is the code to display data from the database: <asp:Repeater …

Writing Query statement with a String and a Date in Excel VBA

Using an ADODB connection, I have an excel database where I store data, and I am trying to make a query in one of the sheets(db_Reports). Values for Lastname and Birthday are entered in textboxes (tb_Lastname & tb_bday, respectively) from a userform. My problem is that the first two query statements work …

Bring a row into a column

I have the following table as my input: Date | Agent Name | Agent Department | Call ID | Transfer? | TransferToAgent_Dept ————————————————————————…