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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by RiazKhanmohamed

  1. RiazKhanmohamed

    getting latest id from insert - ado

    similar, i didn't use creatobject, the sql twigged me. i used: If IsNull(capture_id) Then Dim rs As ADODB.Recordset Set rs = pcnn.Execute("Select @@identity as NewID from Capture") capture_id = rs.Fields("NewID") End If
  2. RiazKhanmohamed

    getting latest id from insert - ado

    man i should have spotted that one! thanks a million. now onto images maps :s
  3. RiazKhanmohamed

    getting latest id from insert - ado

    Hi, I want to (in code) get my connection to insert a row into table 'capture', and then add rows into my many to many table 'capture_species' using the id created in capture just now. I've seen references to methods like dlast, but what i want to know is: within the session, is there no way...
  4. RiazKhanmohamed

    Query

    You can't link both nameFrom and nameTo at the same time otherwise you end up with a circular reference which will probably fail. try this: select t.NameFrom, t.NameTo, t.ActionID from TableTransaction t, TableName n where (t.NameFrom = n.NameID and (t.ActionID = 1 or t.ActionID = 2...
  5. RiazKhanmohamed

    MAPI not sending mail issue

    I have a program with two functions for sending emails in different ways, but both use mapi. the difference is unimportant. Both appear to be coded correctly. Both match what most people have posted on this site. Both fill the fields correctly (on watch), and on send if i type .send true, the...
  6. RiazKhanmohamed

    Returning objects from collections

    Thanks jemminger. I think i'll stick to 1.4.2 and use that casting method. ImpureNokio: I said it would have been my next question, but jemminger answered it. and yes, you did copy it exactly from jemminger, i could already see his answer. However the links may prove useful.
  7. RiazKhanmohamed

    Returning objects from collections

    Thanks guys. Been away from a pc for a few days. All that sound great, though at the moment i think i'll stick with java v1.4.2. jemminger: i'll try that code, seems like what I want, though my next question would have been to ask how to cast objects. I'm still getting my head around it all...
  8. RiazKhanmohamed

    Returning objects from collections

    Hi, guess i'm still a newbie in this field really. I've been recently introduced to collections from vb, so thought i'd give them a go in java. Perhaps I got the wrong end of the stick, but is this logic possible: I have a class called Holiday, storing holiday information from a database. I...
  9. RiazKhanmohamed

    'document.form2' is null or not an object.

    How are you running this script, or should I say where? It would only show if form2 is not called form2. in the form heading <form ...> specify the name and id as form2: <FORM id=form2 name=form2 ... > Otherwise paste the rest of the code and we/someone may be able to help further
  10. RiazKhanmohamed

    connection closed, now won't open! :-s

    ps i'd rather hard code it - my client doesn't wish to be tied to one vendor as they aren't sure if they wish to stay with the server kit they use at present. I'd rather keep the options open.
  11. RiazKhanmohamed

    connection closed, now won't open! :-s

    I always assumed it was once per creation of that instance. Guess that makes more sense really. I guess connection pooling is my only real practical solution here. Thanks.
  12. RiazKhanmohamed

    connection closed, now won't open! :-s

    Managed to close my connection. my current connectionmanager class looks like: ***CODE START*** import java.sql.*; public class ConnectionManager{ private static ConnectionManager conMan; private Connection con; private ConnectionManager(){ try { // Load the Oracle Driver...
  13. RiazKhanmohamed

    After session invalidation should not be able to view secure pages by

    Don't know if this would help, but i've got a similar system, although it's not as high level secure. What i do is on login store the loginid in a session variable. then on every page within the system, it checks if there is one, and if not returns to the login page. it's tedious but works. i...
  14. RiazKhanmohamed

    Closing a connection???? can't be this hard!

    Sorted thanks. thanks for your help sedj, but i worked it out. Weren't any of those. I was creating the connection on creation of the instance of the mapper, so when i went to close it, it knew there was no way of creating a new connection. all i did was move this connection creation to it's...
  15. RiazKhanmohamed

    Closing a connection???? can't be this hard!

    I have a 3 tier architecture on a booking system I am developing in jsp/java/oracle. my database layer has multiple database mapper classes per table type, and a single connectionmanager class which each connects through. However, I cannot kill a connection. my middle tier (problem domain) has...

Part and Inventory Search

Back
Top