Viewing 15 posts - 181 through 195 (of 391 total)
Here's what I'm using in Access to insert a record:
Private Sub cmdSave_Click()
Dim strCUser As String
strCUser = CurrentUserName
Dim con As adodb.Connection
Dim cmd As adodb.Command
Dim rs As adodb.Recordset
Set con...
October 10, 2019 at 6:00 pm
Actually this compiles but I need to have "OriginalDatabaseID" returned as text rather than number:
CREATE VIEW [dbo].[GCDFview]
AS
SELECT p.FirstName, p.LastName, c.city, p.instructorInt as 'Instructor'
, s.stateAbbrveation AS 'State', 'USA'...
July 2, 2019 at 8:23 pm
Like this? The compiler is throwing an error on one of the "=" signs:
SELECT p.FirstName, p.LastName, c.city,
OriginalDatabaseId = iif(InstructorInt = -1,-1,p.PeopleId),
s.stateAbbrveation AS 'State', 'USA' AS Country,...
July 2, 2019 at 8:15 pm
Thank you... works perfectly!
July 1, 2019 at 4:43 pm
I'm using SQL Server but got mixed up as the database has an Access frontend which uses Now().
April 29, 2019 at 3:50 pm
That works perfectly... thanks for the help!
April 25, 2019 at 3:49 pm
The below works except it doesn't label each total:
SELECT [Actives] FROM [GCDF_DB].[dbo].[vTotalActives] as "Actives GCDF"
UNION ALL
SELECT [Actives] FROM [ACS_DB].[dbo].[vTotalActives] as "Actives ACS"
UNION ALL
SELECT [Actives] FROM [BCC_DB].[dbo].[vTotalActives] as...
April 25, 2019 at 3:40 pm
March 26, 2019 at 12:08 pm
;WITH cte_dups AS (
SELECT *, ROW_NUMBER() OVER(PARTITION BY name ORDER BY id...
March 26, 2019 at 11:47 am
March 18, 2019 at 1:44 pm
March 15, 2019 at 12:19 pm
SELECT
BCC.FirstName +...
February 5, 2019 at 7:14 am
Viewing 15 posts - 181 through 195 (of 391 total)