Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. deanbri75

    possible to use Omail.To with a variable?

    I'd like to thank God and the Academy . . oh wait, that's a different thank you speech. The Mail.To suggestion worked perfectly. Seriously, I am very thankful for your help DaButcher and everyone else who answered my numerous questions that I've had with this project. Somehow I got dubbed...
  2. deanbri75

    possible to use Omail.To with a variable?

    I've got a form that sends results using code from kav123 in a former post. (Thanks kav). <% Set oMail = Server.CreateObject("CDO.Message") oMail.From = "your-email@your-domain.com" oMail.To = "recipient@another-domain.com" oMail.Subject = "Here goes the email subject..." oMail.HTMLBody =...
  3. deanbri75

    update query not from a form

    I know what the output will look like. Most of it is displayed on the screen after you complete payment. Thank you. Please print this receipt for your records. Name on Card: deanbri75 Account Number: xxxxxxxxxxxx0019 Expiration Date: 1207 Amount Paid: $ 1.00 Date and Time...
  4. deanbri75

    update query not from a form

    Thanks, Sheco. That's exactly how the process works. Not being a real programmer, (and the lack of documentation from touchnet) I wasn't sure how to get the parm values if they weren't coming from a form I'd written. Perhaps my SQL in the code above is off or maybe it's all wrong. I'll keep...
  5. deanbri75

    update query not from a form

    ...set objconn1= server.CreateObject("ADODB.Connection") strconn1 = "DRIVER={SQL Server};SERVER=server.foo.bar;DATABASE=dbname;UID=username;PWD=********" objconn1.ConnectionString = strconn1 objconn1.Open strconn1 set objrs1 = server.CreateObject("ADODB.Recordset") strSQL1 = "UPDATE...
  6. deanbri75

    update query not from a form

    It may be doing that but I don't really know. When you configure touchnet there's two URLs you specify. One is the Post URL which is never seen and the Success URL which tells the user their payment went through ok. Documentation on this part is really poor. Here's what the manual says: The...
  7. deanbri75

    update query not from a form

    A brief history about my exposure to ASP: From reading examples/faq's etc. I've done several asp pages that used SELECT, INSERT or UPDATE queries but in each case all the variables came from form data. (form = post) So, I know how to make a db connection, create a recordset, etc. My current...
  8. deanbri75

    database results based on user login

    I have a form that I want to display results based on the user who authenticated. For instance, SELECT * FROM TABLE WHERE USER = ::username:: I set the permissions for the site to give "DOMAIN/domain users" browse rights so they have to login. Is there a way to capture the login info and use...
  9. deanbri75

    Limit number of results in joined table

    I ended up reading a bunch of TSQL stuff on MSDN and found that a cursor was what I needed. It's fabulous dealing with one to many situations on a record by record basis. DECLARE @RM1 VARCHAR(50), @RM2 VARCHAR(50) DECLARE RM_CURSOR CURSOR FOR SELECT TOP 100 PERCENT a.GID AS RM1, b.GID AS...
  10. deanbri75

    View with most common value AS Column_Name

    ...in a separate View (called View1) SELECT TOP 1 SLBRMAP_FROM_TERM FROM dbo.APPLICATION GROUP BY SLBRMAP_FROM_TERM ORDER BY COUNT(*) DESC My problem is how to incorporate this value into the column of my view. I'd like to use that select query AS Column_Name in my view. I...
  11. deanbri75

    Limit number of results in joined table

    I have a View that produces a one-to-many result list. What I need it to do is limit the "many" part to 5 instead of listing every possible result. Here's my query: SELECT TOP 100 percent a.GID AS Roommate1, b.GID AS Potential_Roommate2 FROM dbo.APPLICATION a INNER JOIN...
  12. deanbri75

    Removing duplicate records from query results

    ...TableB but only if the row doesn't already exist in TableB. In my case, I use the primary key to help with this. INSERT INTO TableB SELECT * FROM TableA WHERE (PrimaryKey NOT IN (SELECT TableB.PrimaryKey FROM...
  13. deanbri75

    no duplicates - but not the normal no dup question

    Thanks so much 937 for the quick response. It did just the trick. I've inherited this project and will probably be posting a lot of questions on here as I work through all the nuances of it. It's kind of like in Star Wars when Luke ran off to fight Darth Vader. Sure, he had the force but...
  14. deanbri75

    no duplicates - but not the normal no dup question

    First a little background: I have an online applicaiton where incoming freshmen apply for campus housing. Part of the app lets them request their rommmate. The roommate requests have to be mutual. (We do random assignments for those that don't request a particular person but that's a...
  15. deanbri75

    On Error Resume Next not working in transformation

    ...such as 0818205 as a date instead of 08182005. To compensate for this I tried the following transformation script when importing that column: '********************************************************************** ' Visual Basic Transformation Script...
  16. deanbri75

    Question on how to normalize data

    I inherited a property control database that seems poorly set up. It's almost like each table was an a spreadsheet in a workbook. The database has a table named for each year the inventory is performed, i.e. 2003, 2004, 2005. . . They all have the same fields and types: Field Name Field Type...
  17. deanbri75

    Select Distinct problem

    Doing that just omits the FN2, LN2 on the 1st row for each duplicate assignment. Assignment FN1 LN1 FN2 LN2 CDV B206 Johnson Jasmine CDV B206 Rossouw Aileen Johnson Jasmine CDV B207 Hailey STANLEY CDV B207 Roberson Reginald Hailey STANLEY CDV B208 Brown Tamaneka CDV B208 Cammack LAUREN...
  18. deanbri75

    Select Distinct problem

    Sorry, I wasn't intentionally vague. The output I'm after should look something like this: Assignment FN1 LN1 FN2 LN2 CDV B206 Johnson Jasmine Rossouw Aileen CDV B207 Hailey STANLEY Roberson Reginald CDV B208 Brown...
  19. deanbri75

    Select Distinct problem

    I have the following code that I want to return the room assignment and occupants of that room. SELECT TOP 100 PERCENT A.Assignment, A.FirstName AS FN1, A.LastName AS LN1, B.FirstName AS FN2, B.LastName AS LN2 FROM dbo.housemail A LEFT OUTER JOIN dbo.housemail...
  20. deanbri75

    Can you use me.refresh then return to the record you were working on?

    Thanks for the tips. Here's what ended up working for me: Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Dim strSSN As String Set cn = CurrentProject.Connection Set rs = Me.RecordsetClone strSSN = Me!SSN.Value strSQL = _ "UPDATE dbo.PaperApp SET PriorityDate = CONVERT(CHAR(10)...

Part and Inventory Search

Back
Top