Viewing 15 posts - 16 through 30 (of 84 total)
ChrisM@Work,
I know how to do it. I didn't say it could not be accomplished some other way.
My original post said that an alias cannot be referred to in a...
August 1, 2013 at 7:35 am
Just a clarificaton:
An alias for a calcuated column can be used in GROUP BY or ORDER BY clauses, but not in the SELECT column list as vega805 was attempting (at...
July 31, 2013 at 10:15 am
I stand corrected...and pleased that the functionality does exist.
Thanks.
July 31, 2013 at 9:50 am
Access lets you define a calculated column in a query and then use the calculated column name in other calculated columns. SQL Server will not allow this. In...
July 31, 2013 at 7:36 am
DECLARE @Tol1 AS INT
, @Tol2 AS INT
, @Trig AS INT
, @car...
July 30, 2013 at 2:52 pm
Use CTEs to eliminate subselects and make your code more readable (the view is also eliminated by the first cte):
WITH cte_tables (zCardNo, zDate, zDatetime1, zChannel_no)
AS ( SELECT cardno, CONVERT(DATE, datetime1),...
July 30, 2013 at 8:09 am
-----------------------------
-- The following returns what you asked for (but may not be what you want):
-----------------------------
SELECT Cust_No_A
,Cust_Name_A
,Cust_Address_A
,Cust_City_A
,Cust_State_A
,Cust_Zip_A
,NULL AS Cust_No_B
,NULL AS Cust_Name_B
,NULL AS Cust_Address_B
,NULL AS Cust_City_B...
July 24, 2013 at 7:38 am
The simplest solution is to split the Contains() into two Contains():
WHERE
(
(Contains(r_resume_text,'"FirstWord" OR "SecondWord"'))
...
July 19, 2013 at 8:00 am
I can't help you get the line of code to execute, since I cannot debug it myself.
The reason CurrentUser() returns Admin is that CurrentUser() is returning the Access security user,...
July 17, 2013 at 1:41 pm
You haven't indicated that the line of code:
Me.txtUserID = Environ("UserName")
is executing. You will have to figure that out.
I would take out the line:
On Error Resume Next
Also, set...
July 17, 2013 at 12:33 pm
If your form is "bound" to a recordsource (table or view), the textbox's control source would be the name of the column in the recordsource that will receive the value....
July 17, 2013 at 12:03 pm
My appologies. The function to return the logged in user is:
Environ("USERNAME") not "UserID"
July 17, 2013 at 10:48 am
It is in the right place.
I'm not sure why you have an On Error Resume Next.
Set a breakpoint in the code on the Me.txtUserID = Environ("USERNAME") by clicking on that...
July 17, 2013 at 10:33 am
Assuming your New Button name is "cmdNew" and your UserID Textbox Name is "txtUserID":
In the cmdNew_Click event, after the recordset is placed on the new record, add the code:
Me.txtUserID =...
July 17, 2013 at 9:52 am
Within Access you can use the Environ("UserName") function to get the user that is logged into Windows.
The suser_sname() may return the Domain/UserID if using Windows authentication.
July 17, 2013 at 7:38 am
Viewing 15 posts - 16 through 30 (of 84 total)