Search results

  1. V

    Simple Delete query

    Hi all, i'm having problems deletign data from a local table with a query that *should* delete a range of records selected from another query. The code is below: DELETE tblFinal.* FROM qry0555SELInvref LEFT JOIN tblFinal ON qry0555SELInvref.INVREF = tblFinal.INVREF; Now I have a...
  2. V

    Communications failure !

    Communications failure Hi all, a bit of a strange one this. I have a table directly linked in via ODBC from a AS/400 DB and I can actually open and view the data from that table, I can also create a basic select statement on the fields I am really interested in and view the results without...
  3. V

    Trim function in query

    Yup, like a dream !! Thanks again.
  4. V

    Trim function in query

    Thanks Ken, yes, 'code' is a bad field name but I dare not mess with it myself being the new guy here. I usually play it safe with field names. Cheers again. Mitch.........
  5. V

    Trim function in query

    Hi all, I have a local table that has data imported from a spreadsheet and we have discovered that one of the fields brings in trailing spaces. Since the Access DB has some querys to manaipulate the data I thought I would just create a qry that would trim the value of that field but I...
  6. V

    Date problem

    Ahh... that did the job. It would have taken me another few weeks to figure that out !! You're a Genius, thank you very much !!!
  7. V

    Date problem

    Thanks SQL_Hell, but I am having problems trying to mix it into my existing code. The error mesage I get is a s follows, Msg 207, Level 16, State 1, Line 4 Invalid column name 'hire_date'. and the code I tried using is use pubs if (LEN(convert(varchar, datepart(mm,hire_date)))=1) SELECT '0'...
  8. V

    XML Code

    Hi all, I am reading through a SQL Server 2005 book and has this code exercise which create a XSD file, but when I try to run it I am getting an error message re line 3. Msg 102, Level 15, State 1, Line 3 Incorrect syntax near '‘'. This line :- ‘<?xml version=”1.0”...
  9. V

    Connecting two PS2s

    You *should* be able to play LAN games using a crossover cable, it depends on the game itself. If the PS2 does not have any LAN games then get yourself a XBox 360, there are plenty for that..........
  10. V

    Date problem

    No, not personally, but date conversion. I have this lovely bit of code to convert date SELECT convert(varchar,convert(varchar,datepart(mm,tmpdate))+ '/' + convert(varchar,datepart(dd,tmpDate),101) + '/' + convert(varchar,datepart(yyyy,tmpdate)),101) AS TheDate from tmpTbl but I noticed that...
  11. V

    Translatign from Access to SQL Server

    Thanks SQL_Hell, i'll play around with that too :)
  12. V

    Translatign from Access to SQL Server

    Cheers PDX, that fits the bill !! "select SUBSTRING(CitySt,1,LEN(CitySt)-4) AS 'City' FROM tblAddress"
  13. V

    Translatign from Access to SQL Server

    Hi all, I have created a form in Acess 2002 that will clean up the value of some fields in a table. There are spaces after the value and the value ( which is City, state as "Los Angeles,CA") itself needs to be shortened to take out the state so only the City is shown. I managed to do this...
  14. V

    Using value from a form field.

    Thats it !! Thank you very much. Mitch.......
  15. V

    Using value from a form field.

    Hi all, I have a form that has two fields, date from and Date to, the user enters the dates in these fields then hits a button to display the results from a query. The code for the criteria of the query is as follows Between [frmName]![txtdate].[value] And...
  16. V

    Changing font color if value for another field equals...

    Thanks. I just tried Conditional formatting and it still highlights all the records for that field in blue, and this is probably due to the fact I am using continous forms to display the records so I may have to re-think the display. Thanks again though.
  17. V

    Changing font color if value for another field equals...

    Awp yeah, I have changed the control and the field name to HType. OK, I have placed the code to the on Current event ( the form is a continous form view) but still no joy but I shall look into conditional formatting since I am using Access 2002. Thanks, Mitch.........
  18. V

    Changing font color if value for another field equals...

    Hi all, I'm having a problem getting a txtbox to display the font color blue if the value of another specific txtbox is equal to "Computer", if the value is anything else the text color should remain black. However when the form is open all the Asset fields font color is blue. The code I...
  19. V

    Reference for 'Inherited' property

    Hi all, I have the following code in a module "Sub exeProperties() Dim db As Database Dim tbl As TableDef Dim prp As Property Dim str As String Set db = CurrentDb Set tbl = db!Books str = "" For Each prp In tbl.Properties str = str & prp.Name str = str & " = " & prp.Value str =...
  20. V

    Simple qry using unbound textbox.

    Hi all, I am experiencing problems trying to put together what I thought was a simple form that would allow users to search for data from a field on one table and display the results in a data grid style from the query I have created. However the query is'nt working and I am sure it is...
Back
Top Bottom