Commands driving me NUTS - please help

Got this to work - but ONLY with numbers. I need to be able
to insert text -
How/what am I doing wrong????
I CANNOT find any adobe help (detailed) on how to write
proper commands - am
I blind?
Helle - WithLotsOfGreyHairNow
<%
If (Request.Form("Kategori")="") Then
Response.Redirect "Pro_Kat_Pick.asp"
end if
%>
<%
If (Request.Form("Kategori") <> "") Then
set ComInsertKat = Server.CreateObject("ADODB.Command")
ComInsertKat.ActiveConnection = MM_connHK_STRING
ComInsertKat.CommandText = "INSERT INTO T_Kategori (Kategori)
VALUES (" &
Request.Form("Kategori") & ")"
ComInsertKat.Execute()
Response.Redirect("Pro_Kat_Pick.asp")
end if
%>

Helle wrote:
> Got this to work - but ONLY with numbers. I need to be
able to insert
> text - How/what am I doing wrong????
> I CANNOT find any adobe help (detailed) on how to write
proper commands
> - am I blind?
>
>
> Helle - WithLotsOfGreyHairNow
>
>
> <%
> If (Request.Form("Kategori")="") Then
> Response.Redirect "Pro_Kat_Pick.asp"
> end if
> %>
> <%
> If (Request.Form("Kategori") <> "") Then
> set ComInsertKat = Server.CreateObject("ADODB.Command")
> ComInsertKat.ActiveConnection = MM_connHK_STRING
> ComInsertKat.CommandText = "INSERT INTO T_Kategori
(Kategori) VALUES ("
> & Request.Form("Kategori") & ")"
> ComInsertKat.Execute()
> Response.Redirect("Pro_Kat_Pick.asp")
> end if
> %>
Dreamweaver CS3 has issues with Commands, whenever I try to
use them it
crashes. The way I got around it was to use stored
procedures, and then
use a Recordset to pass the details to it. Works perfectly.
Steve

Similar Messages

  • This rummy game is driving me nuts, Please Help me!!!!

    In my project, I am suppose to create an agent that plays a simple version of rummy. To win this game, the agent is dealt seven cards initially, and in order to win, it has to create two sets of combination of cards (one of 3 cards the other of 4), each combination can either have cards of the same rank (eg. 10 Hearts, 10 Clubs, 10 Spades) or the same sequence, but the same suit (2s,3s,4s,5s OR 7c,8c,9c). The cards are saved in an array of seven elements.
    Beside the main SDK, we have our own api for this game, that for example lets you check whether two cards are in the same rank (eg. (10H.sameRank(10D) returns true), or whether they have the same suit or not.
    I have no trouble creating a hand of cards with the same rank, but my problem is with creating a hand of cards with the same sequence.
    I have tried to come up with an algorithm that would allow me to create a hand of cards (of same suit) in the sequence, but without success. This thing is driving me nuts.
    CAN ANYONE GIVE ME ANY GUIDANCE PLEASE!!
    Thanks

    http://forum.java.sun.com/thread.jsp?forum=406&thread=354616

  • Order of tunes in library when importing is driving me nuts please help me!

    Can somebody PLEASE help me....when I import albums into the library/ playlists it stores all the first tracks, then all the 2nd tracks, then all the 3rd tracks, and so on....like 1 1 1 1 2 2 2 2 3 3 3 3 and so on, down the list, and plays them in that order too. Extemeley annoying...can anyone help me rectify this problem?

    click on the column header that you want to sort by (artist/album/track#/song title etc)

  • MacXs is driving me nuts,  Please help!

    Please guide me to proper instructions on how to eliminate MacXs from my iMac Intel.
    I attempted to download something and ended up with this MacXs adware on my Safari (V 7.0.6 (9537.78.2), Firefox (V 31.0) and Chrome (V 37.0.2062.94).
    When I search for removal instructions I get a huge list of totally unfamiliar sites... Don't want to go there.
    Thanks much,
    Fred

    You may have installed the "VidX" trojan, perhaps under a different name. To remove it, first open the Applications folder by selecting
              Go ▹ Applications
    from the Finder menu bar, or by pressing the key combination shift-command-A. Look for an item named "VidX," "MacVx," or similar. If present, drag it to the Trash and empty.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extension you don't know you need. If in doubt, remove all of them. You may well have more than one that's adware or spyware.

  • AHHH!!! Printer driving me nuts, please help!

    I have a IMac running OS10.4.10, and a Brother laser printer. They all previously worked perfectly until recently. Can not remember what I changed at all, except for installing an component to Quick Time to play Windows media player files.
    1. Printer does work as I can print direct with USB using my Macbook.
    2. When using word or excel to print. Nothing happens, the files does not even reach the print queue.
    3. When using Keynote, or Pages to print, it says 'Error while printing'.
    4. The computer crashes at times when attempint to print.
    Tried
    1. reinstalling printers.
    2. using an old Canon printer - same responses
    3. 'Reset Printing System' - same results
    4. head bashing - it hurt my head.
    Could anyone help me, and perhaps point me in the right direction as I am pulling my hair out.
    Thank you very much.
    CL

    The two steps that come to mind are
    (1) Reinstall the applications that don't work.
    If that does not work.
    (2) Reinstall Mac OS X, using the Archive and Install option to get a fresh System. This lets you elect to retain your user data, but you should still backup your personal data, just in case. Also, after starting up from the Mac OS X Installation Disk, run Disk Utility from the Installer menu. Use both the Repair and Repair Permissions routines.

  • Java command still not working - please help

    i have installed jdk1.6.0_05. The javac command works fine but the java command does not work at all. even when i try java HelloWorld i receive this exception message
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    Caused by: java.lang.ClassNotFoundException: HelloWorld
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    please help (you to SUN)!!

    bart@kerberos:~$ javac -help
    Usage: javac <options> <source files>
    where possible options include:
      -g                         Generate all debugging info
      -g:none                    Generate no debugging info
      -g:{lines,vars,source}     Generate only some debugging info
      -nowarn                    Generate no warnings
      -verbose                   Output messages about what the compiler is doing
      -deprecation               Output source locations where deprecated APIs are used
      -classpath <path>          Specify where to find user class files and annotation processors
      -cp <path>                 Specify where to find user class files and annotation processors
      -sourcepath <path>         Specify where to find input source files
      -bootclasspath <path>      Override location of bootstrap class files
      -extdirs <dirs>            Override location of installed extensions
      -endorseddirs <dirs>       Override location of endorsed standards path
      -proc:{none,only}          Control whether annotation processing and/or compilation is done.
      -processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process
      -processorpath <path>      Specify where to find annotation processors
      -d <directory>             Specify where to place generated class files
      -s <directory>             Specify where to place generated source files
      -implicit:{none,class}     Specify whether or not to generate class files for implicitly referenced files
      -encoding <encoding>       Specify character encoding used by source files
      -source <release>          Provide source compatibility with specified release
      -target <release>          Generate class files for specific VM version
      -version                   Version information
      -help                      Print a synopsis of standard options
      -Akey[=value]              Options to pass to annotation processors
      -X                         Print a synopsis of nonstandard options
      -J<flag>                   Pass <flag> directly to the runtime systemSee the bold part.
    More information: [http://java.sun.com/docs/books/tutorial/java/package/managingfiles.html]

  • Oracle 10g Rel2(10.2.0.3) on Vista ultimate driving me crazy, Please HELP

    Hello Folks and Expert,
    I am Certified Ora DBA and am stuck, thats a shame
    I am going to install and Test Oracle 10g on Vista as my future client will use Just Vista and no othr OS, so there is no OTHER OS options,
    I ready all the documentaiotn and release notes and also read that Oracle 10g(10.2.0.3) is certified on Vita Ultimate.
    I downloaded the DB which is frm the below link:
    Oracle Database 10g Release 2 (10.2.0.3/10.2.0.4) for Microsoft Windows Vista and Windows 2008
    *** It installs but it justdoesn't work properly, PLEASE HEEEEEEELP I am running out of time.
    steps I have done:
    1. Installed loppback and tested and it works when I ping, both ping computer and ping computer.domain with no error.
    - whic means under windows>system32>driver> etc>host I added the 10.10.10.10 and cmputer name.
    2. Under MMC I added cmputer local policy for local computer
    3. Also Under "Local security setting" under "Local Policies" Under "User right Assignment" Under "Log on as a Batch job" I added the User name which was created when weload the Vista for the first time which is the Computer Admin, ALSO REALOADED THE COMPUTER WITH TH FACTORY SETTING AND AFTER THE FIST BOOT, UNLOCKED THE "ADMINISTRATOR" USER OF THE OS AND TESTED WITH THE ADMIN USER AS WELL WHICH WAS ADDED TO THIS lOG ON AS A BATCH JOB.
    4. Restarted the Computer on all the step that I had to
    5. Downloaded the DB and installed the DB, it installled without any Error
    ******************My Questions are as belooooowww ******************
    When Oracle installd he prduct, usually under the
    Start menu> All programs we should have 4 folders (Application Development, Configuration and Migration, Integrated management tools, Oralce installlation products) and DATABASE CONTROL - ORCL
    a - when installation finishesh it JSUT DOESN't CREATE ------> DATABASE CONTROL - ORCL Whyyyyy ? (It is driving me crazy, I have another xp machine and it has also I had EVEN Vista Home premium and I was able to install on it before to test)
    b - I can loging to the database after i type the adress I remembered manually in the browser, it logs in without any errror, but
    When I want to shutdown the database It passes the host crendential once and I wait and it does nothing and a little windown pops up and says
    *"Enterprise manager stopped working"*
    C - To test and stop Listener also it just doesn't stop it and doest the samething,
    I just wannna CRYYY, it is getting me Crazy,
    PLEASE HELP ME with all THREE QUESTONS A,B,C PLEASE HELLLLLLPPPPP
    Rgrds,

    Hello Folks and Expert,
    I am Certified Ora DBA and am stuck, thats a shame
    I am going to install and Test Oracle 10g on Vista as my future client will use Just Vista and no othr OS, so there is no OTHER OS options,
    I ready all the documentaiotn and release notes and also read that Oracle 10g(10.2.0.3) is certified on Vita Ultimate.
    I downloaded the DB which is frm the below link:
    Oracle Database 10g Release 2 (10.2.0.3/10.2.0.4) for Microsoft Windows Vista and Windows 2008
    *** It installs but it justdoesn't work properly, PLEASE HEEEEEEELP I am running out of time.
    steps I have done:
    1. Installed loppback and tested and it works when I ping, both ping computer and ping computer.domain with no error.
    - whic means under windows>system32>driver> etc>host I added the 10.10.10.10 and cmputer name.
    2. Under MMC I added cmputer local policy for local computer
    3. Also Under "Local security setting" under "Local Policies" Under "User right Assignment" Under "Log on as a Batch job" I added the User name which was created when weload the Vista for the first time which is the Computer Admin, ALSO REALOADED THE COMPUTER WITH TH FACTORY SETTING AND AFTER THE FIST BOOT, UNLOCKED THE "ADMINISTRATOR" USER OF THE OS AND TESTED WITH THE ADMIN USER AS WELL WHICH WAS ADDED TO THIS lOG ON AS A BATCH JOB.
    4. Restarted the Computer on all the step that I had to
    5. Downloaded the DB and installed the DB, it installled without any Error
    ******************My Questions are as belooooowww ******************
    When Oracle installd he prduct, usually under the
    Start menu> All programs we should have 4 folders (Application Development, Configuration and Migration, Integrated management tools, Oralce installlation products) and DATABASE CONTROL - ORCL
    a - when installation finishesh it JSUT DOESN't CREATE ------> DATABASE CONTROL - ORCL Whyyyyy ? (It is driving me crazy, I have another xp machine and it has also I had EVEN Vista Home premium and I was able to install on it before to test)
    b - I can loging to the database after i type the adress I remembered manually in the browser, it logs in without any errror, but
    When I want to shutdown the database It passes the host crendential once and I wait and it does nothing and a little windown pops up and says
    *"Enterprise manager stopped working"*
    C - To test and stop Listener also it just doesn't stop it and doest the samething,
    I just wannna CRYYY, it is getting me Crazy,
    PLEASE HELP ME with all THREE QUESTONS A,B,C PLEASE HELLLLLLPPPPP
    Rgrds,

  • IWeb is driving me nuts! HELP!

    I have been using IWeb for awhile. Now, all of the sudden everytime I go to publish a new page, it republished ALL of my pages and takes forever. Plus, sometimes the formatting is messed up on the actual site. Lastly, sometimes some of the pages don't even show up on the site. I loved this program, but in the last month it is driving me up a wall. I have IWeb 1.1.1 and I don't know what is going on. Please help!

    Hello Boston here also. I have noticed that when you create a new page, iweb will automatically publish the whole site. I m not sure if there is a way around this, but one thing you could do is back your site up and replace the files you didnt change with that. To backup you go in to your idisk click on iweb and sites and copy the website folder to say an external hard drive or a specific place on your computer. Then when you create a new page or modify a page simply add that finished product to your backup and then replace your original site folder with your changed backup. I hope this helps, and I made sense. If not search the discussions for iweb backup and you will find past threads about this subject. Good luck

  • IMovie unexpectedly quits - Driving me crazy, please help???

    Hi All
    I am in desperate need of help.
    I am currently trying to both Publish and or Export a project using iMovie 09. The project runs for 2 and half hours and contains various home movies I have recorded over the year. The actual footage has been recorded on both my Sony AVCHD camera and also my iphone 4 (both of which I have been able to publish projects with previously). The project is nothing fancy, it contains the usual Titles, Transitions and chapters. Every time I attempt to either publish or export the project I receive an error message advising “iMovie has unexpectedly quit“. I have tried to publish in all sizes (Tiny, Mobile, Medium, Large & HD) all with no success and have also tried exporting using imovie and quicktime numerous times with varying settings. All combinations continue to result in the same error message. On a side note I have created a smaller “Test Project” of which only runs for one minute, this again uses footage from both cameras and features the same Titles, Transitions and chapters. This file both publishes and exports without problem.
    As the smaller/shorter file/clip works I have to assume the problem relates to the size of my project, this then strikes me as being odd as I have other projects running upto 2hrs 53Min of which have been published in HD previously. I am using a 2.8 Ghz intel core 2 Duo processor with 4 GB Ram.
    When I proceed to send an error report to apple the start of the report reads as follows:
    Process: iMovie [19752]
    Path: /Applications/iMovie.app/Contents/MacOS/iMovie
    Identifier: com.apple.iMovie8
    Version: 8.0.6 (821)
    Build Info: iMovieApp-8210000~16
    Code Type: X86 (Native)
    Parent Process: launchd [78]
    Interval Since Last Report: 260128 sec
    Crashes Since Last Report: 4
    Per-App Interval Since Last Report: 84581 sec
    Per-App Crashes Since Last Report: 4
    Date/Time: 2011-01-12 21:11:44.715 +1100
    OS Version: Mac OS X 10.5.8 (9L31a)
    Report Version: 6
    Anonymous UUID: ED0ECE17-A82C-4F3E-A0CB-5522C53ED1A7
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: KERNINVALIDADDRESS at 0x0000000042638000
    Crashed Thread: 16
    Does anyone have any ideas on what the problem could be ? its driving me nuts !!!!
    Regards
    Dylan

    Hi
    Does anyone have any ideas on what the problem could be ? its driving me nuts !!!!
    No - but may be You find some ideas here.
    *Not knowing the origin to Your problem - General approach when in trouble is as follows.*
    • Free space on internal (start-up) hard disk if it is less than 10Gb should rather have 25Gb
    • Delete iMovie pref file
    iMovie pref file resides.
    Mac Hard Disk (start-up HD)/Users/"Your account"/Library/Preferences
    and is named. (one or more of these)
    com.apple.iMovie.plist
    com.apple.iMovie3.plist
    com.apple.iMovie7.plist
    com.apple.iMovie8.plist
    and find
    com.apple.iApps.plist
    While iMovie is NOT RUNNING - move this/these file/s out on to desk-top.
    Now restart iMovie.
    • Hard disk is untidy. Repair Permissions, Repair Hard disk (Apple’s Disk Utilities application)
    • Garageband-fix. Start it, Play a note and Close it. Re-try (Corrects an audio problem that hinders iMovie)
    • Screen must be set to Million-colors
    • Turn off Mac and disconnect Mains/Power for 20-30 minutes - will at least re-set FW-port
    • Third party plug-ins that doesn't work OK (not relevant for iMovie’08 or 09)
    • Problems in iPhoto Library can affect iMovie to crash on start-up. Re-build this first then try to re-start iMovie.
    This You do by
    _ close iPhoto
    _ on start up of iPhoto - Keep {cmd and alt-keys down}
    _ now select all five options presented
    _ WAIT a long long time
    • iMovie updated ?
    • QuickTime updated ?
    • Mac OS version ?
    • Program miss-match. iMovie 4 - will not work under Leopard
    • Program miss-match. iMovie 5.0.2, up to Mac OS X.4.11 AND QuickTime 7.4.1 - is OK
    • Program miss-match. iMovie 6.0.3 or 6.0.4, Mac OS X.4.11 AND QuickTime 7.4.1 - is OK (will work under Leopard and Snow-Leopard)
    • Program miss-match. iMovie’08 v. 7.1.4, Mac OS X.4.11 AND QuickTime 7.5.5 - is OK (will work under Leopard and Snow-Leopard)
    • Program miss-match. iMovie’09 v. 8.0.6, Mac OS X.5.8 AND QuickTime 7.6.4 - is OK (will work under Leopard and Snow-Leopard)
    From LKN 1935. (in this case = iMovie HD (5), I tried it all, but nothing worked.
    Your answer (above) has been helpfull insofar as all the different trials led to the conclusion that
    there was something wrong with my iMovie software. I therefore threw everything away and reinstalled
    iMovie from the HD. After that the exportation of DV videos (there has not been any problem with HDV videos)
    to my Sony camcorders worked properly as it did before.
    Lennart Thelander
    I run "Cache Out X", clear out all caches and restarts the Mac.
    Yours Bengt W

  • UNKNOWN SYMBOL DRIVING ME MAD, PLEASE HELP!!!

    I have a symbol that has come up on my screen. It's a white box with a black dot inside and a red dot like the 'notification star' on it. It's in the same area as where you get your bbm, facebook, email, etc. notifications. I've tried going through all my apps and nothing is helping. It's driving me mad. PLEASE PLEASE HELP!

    Hi DivaAoife,
    Sounds like an update notification for BlackBerry App World. Do you have an email regarding an update? If not, you may be able to see the update notification in My World within App World.
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • E: drive full and trying to back up! driving me craaaazy please help

    hey! my laptop is like 5 days old! i put all my old photos and music from itunes onto disks from my old laptop and put them onto this one. everything was fine until sunday! the laptop started a back up! i got a messege saying that the disk E: drive was full and to delete files ect... or i could change the settings! i tryed to change the back up to do this onto disk. but iv been told there should be a place to do this on the laptop and the the wall partions may not be set rite. i also keep getting a warning that my E: drive is full and to make space! i have phoned hp support and they say talk to the place i got the laptop from and so i did they said i could sent it back but that means removing everything! i have googled and seen loads of people with this prob so is there a way to fix this? someone please help its drivng me crazy! i have a hp pavilion g6 series. thaaaaaaaanks x

    You need to re-run the backup program to unselect the E drive.
    As a sidebar, it is actually unwise to backup to the same physical hard drive. You need to realize that you have a single hard drive , that is partitioned in hard disc C,D,E.  If that physical hard drive were to crash, cease to function. burn-out, etc, you lose all of it. It is not separate drives.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Windows 7 application error 1000 - driving me insane please help

    I keep getting the message - windows explorer stopped working when i tried to upload photos, look at them on computer etc
    I tried many offered solutions and this is what i found:
    System
    Provider
    [ Name]
    Application Error
    EventID
    1000
    [ Qualifiers]
    0
    Level
    2
    Task
    100
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2014-05-28T20:41:48.000000000Z
    EventRecordID
    30226
    Channel
    Application
    Computer
    Mia-PC
    Security
    EventData
    explorer.exe
    6.1.7601.17567
    4d672ee4
    ntdll.dll
    6.1.7601.18247
    521eaf24
    c0000005
    00000000000317a7
    18f4
    01cf7ab4b783d6b3
    C:\Windows\explorer.exe
    C:\Windows\SYSTEM32\ntdll.dll
    7cc28f3a-e6a8-11e3-8a86-14dae9e553d7
    I have been trying to fix this for over a week, please help before i sling this computer out of the window
    Mandy

    Hi, I would try to use the calendar to fallback on a system restore's point if you can, something hooked's up on your explorer.exe. Could be a malware too, depend what you do on your Windows 7.
    Regards, Philippe
    Don't forget to mark as answer or vote as helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
    Answer an interesting question ? Create a
    wiki article about it!

  • Hi everyone. I am trying to download ML on my iMac and when I click the download button, I am asked for my PW which I provide and then the ML icon launches in launchpad but nothing takes place. Have been trying for 2 days and this is driving me nuts. Help

    Hi everyone. I am trying to download ML on my iMac and when I click the download button, I am asked for my PW which I provide and then the ML icon launches in launchpad but nothing takes place. Have been trying for 2 days and this is driving me nuts. Help

    Yes it does and there is an indication that the software is downloading but after a few hours, it just stops without any error message. Everything simply disappears and I need to start over again. I have a superfast connection so it should no be this slow. Everything worked fine on my MBP and I am in the same place. Any ideas

  • I am going nuts Please help me with DefaultTableModel

    Hi al
    Can someone please help me
    I am using jbuilder 10 and running on a Mac.
    I am trying to use DefaultTableModel with this code
    DefaultTableModel tableModel = new DefaultTableModel();
    And I am getting this
    "IND_Client.java": cannot resolve symbol: class DefaultTableModel in class new_efi_database.IND_Client at line 27, column 4
    What am I missing ??
    I can not find out any info on this
    Craig

    have you imported javax.swing.table.* ?
    Also - depending on how much customization you're after consider extending AbstractTableModel......

  • SQL driving me mental, please help

    I have the following tables in my database.
    customerinfo
    lineitem
    orderhistory
    productinfo
    I just recently changed my database to provide for normalisation but it screwed with my sql statement.
    I used to be able to type:
    ResultSet res = stmt.executeQuery("SELECT * FROM orderhistory WHERE CustomerDescription ='"+CID+"' ORDER BY OrderID");
    This would return a:
    ProductDescription
    Quantity
    Cost
    and Total Cost.
    These were originally all in a single table but now ProductDescription is in productinfo, Cost is in productinfo, Quantity is in Lineitem, and TotalCost is in orderhistory.
    Can anyone figure out the statement i must use to get the correct result set???? Please, I have tried everything and have hit a brick wall everytime.

    Sorry to bother you again but this is driving me insane and I really need to get this sorted. Here is the problem.
    I have three table in my database as follows:
    LineItem Table consists of 3 fields:
    LineItemId, OrderID and Quantity.
    OrderHistory table has 3 fields:
    OrderID, CustomerID and Total
    ProductInfo table has 4 fields:
    ProductID, ProductDescription, Cost & ProductLocation.
    OrderID is the primary key:
    What I want to do is extract the OrderId, ProductDescription, Quantity, ProductCost & Total where CustomerID = '.....'
    I am having major problems with linking my tables and receiving duplicate results.
    At the Java side of things, i would select a customerID, and the above order details would be returned. Here is the code i am using:
    ResultSet res = stmt.executeQuery("select * from orderhistory o, customerinfo p, productinfo c where o.CustomerID = p.CustomerID");
    while(res.next())
    txtCustomerID.setText(res.getString("CustomerID"));
    txtArea.append("ORDER ID: " + res.getString("OrderID")+ "\n" );
    txtArea.append("**************************************************" + "\n");
    txtArea.append("Product Description: " + res.getString("ProductDescription" )+"\n");
    //txtArea.append("Product Quantity: " + res.getString("Quantity")+"\n" );
    txtArea.append("Product Indidvidual Cost: " + res.getString("ProductCost")+"\n" );
    txtArea.append("Product Total Cost: " + res.getString("Total")+"\n" );
    txtArea.append("**************************************************" + "\n");
    Any help would be greatly appreciated.

Maybe you are looking for