Recent content by harrisw48

  1. H

    Open database and only display a switchboard

    Done all that but can still see the menu bar at the top of the form. The form is also full screen and I need it to resize and display in the middle
  2. H

    Open database and only display a switchboard

    Im new to Access 2007 and am trying to create a form that opens on startup and then displays in the middle of the screen without seeing the database. How do i do it? Thanks
  3. H

    sql server update field that contains nulls

    Im trying to update a field that contains NULLS using the concatenate code below dbo.[Current Extract].[field1] = isnull(dbo.[Current Extract].[field1], '') + dbo.[Current Extract].[field1] + '-1-' The code appears to work but it doesnt update the field, it still contains NULLS where you would...
  4. H

    Alter Table Add Field

    Im using the cose below to add a new field to a table: Public Sub AddFields() Dim Dbs As Database Set Dbs = CurrentDb Dbs.Execute ("ALTER TABLE TEMP ADD COLUMN TESTER TEXT(20);") End Sub How can I set the new field to allow zero length? Its default seems to be set to "NO"
  5. H

    Create one field from 3 using a function

    I tried that using the code below Public Function OneContact(strSalutation As String, strFirstname As String, strInitials As String, strSurname As String) As String OneContact = strSalutation & strFirstname & strInitials & strSurname End Function When I try to use the OneContact...
  6. H

    Attempting to use SQL in a module

    What would the SQL look like to run the process. If you can point me in the direction of the threads you mention that would be great
  7. H

    Attempting to use SQL in a module

    Ok ill try and give you more info I have 2 tables in access one holds data one holds critera (counties) i want to write a module which basically runs down the counties table picking out the top 300 records from the data table in order of employee size, highest first and then add the 300...
  8. H

    Attempting to use SQL in a module

    How would this look if the criteria was a variable ie another field in another table Thanks
  9. H

    Attempting to use SQL in a module

    I am getting errors with the statement below sql = "select * from [tablename] where [fieldname]="criteria"" set dbase.openrecordset(SQL) It appears to be the sql statement that is giving the error. How can I enter criteria with the "" double quotes Thanks in advance
Back
Top Bottom