Search results

  1. D

    Select Query using a Value in one or 2 combo boxes

    sure you can: WHERE (((tblSampleSubmission.SubmissionNumber)=[Forms]![frmReportPreview]![SubNumber] or tblSampleSubmission.SubmissionNumber)=[Forms]![frmNameOf2ndForm]![FieldName])) Dave
  2. D

    VBA Table Lookup

    Chris, you need to get away from 'flat data' (spreadsheet) presentation and think database which is not something that you can do in a couple of days. I would: 1) create 2 tables related to each other, Table1 contains details of your cottages and Table2 contains the range of dates. 2a)...
  3. D

    Splitting the database

    why/how do the tables look different? Dave
  4. D

    Pop-up Button

    DoCmd.OpenForm "frmName" Dave
  5. D

    Command button for mail merge

    sure there is, check out the CreateObject Function in Access Help. Dave
  6. D

    Many-Many Form Multiple People to One Project

    have you considered a subform? If you have a form that contains unique information (person v. project depends on your output requirements) with a subform in it listing the related information should do the job. Maybe. Dave
  7. D

    Using a Query Based Form

    first a few questions to you: 1) what happens if in a month's time you need to enter data for consultant4? 2) what happens if in 2 months time you need to enter data for service5? 3)etc. Dave
  8. D

    Numbering lines in a query

    OK, took me a while but I found it. the basics of the SQL: SELECT [tbl_Orig].[UniqueKey], (SELECT Count([tbl_Orig].[FieldToCount]) AS AutoNum FROM [tbl_Orig] WHERE ((([tbl_Orig].[UniqueKey])<=[tbl_Alias].[UniqueKey]))";") AS Total FROM [tbl_Orig] AS [tbl_Alias]";" my example: SELECT (SELECT...
  9. D

    Using the count function in access queries

    g'day, I would group on the faculty field and count the student names. The following SQL count the number of post codes for each state of Australia SELECT tblPostCodes.State, Count(tblPostCodes.Pcode) AS CountOfPcode FROM tblPostCodes GROUP BY tblPostCodes.State; Dave
  10. D

    Numbering lines in a query

    I never used the procedure but check this site out: http://easyweb.easynet.co.uk/~trevor/AccFAQ/ see article "Sequence number of the fly" under Queries Dave
  11. D

    Access locking up with multiple users

    I seem to recall that when user1 is accessing a record in the BE user2 will not be able to access records in the vicinity of the record user1 is accessing. I don't remember the details (ie size of the chunk of the db that is not available), I would suggest you search Access help for "Record...
  12. D

    multiple users

    Split the db up and keep the tables on the main server. A copy of the FE should be kept as a master (wherever you wish) and a copy should be placed on the hard disk of each of the users pc. Each FE should be linked to the tables in the BE. Dave
  13. D

    VBA Table Lookup

    I would use combo boxes where cbo1 lists the cottages and cbo2 updates the information based on the selection in cbo1. Dave
  14. D

    SQL statement in VBA

    try the query in the query environment and see if it works there.
  15. D

    checking part of the value in a field

    this is a bit crazy. If I have V:\etc.\Imports I get the msg with "Imports" If I have V:\etc\Clearances I get both msg Imports and Clearances checking the values in code shows both "import" and, after the step through, "clearances". ????
  16. D

    checking part of the value in a field

    thanks for the quick reply Bob, I changed your code slightly If InStr(1, Me.txtDirName, "import", vbTextCompare) > 0 Then strValue = "Import" MsgBox strValue End If If InStr(1, Me.txtDirName, "clearance", vbTextCompare) > 0 Then strValue = "Clearance" MsgBox strValue End If when I click on...
  17. D

    SUM and GROUP BY

    You cannot not display the product name many times in the query. You can do so in a report but not in a query. BTW, name is reserved term in Access. I suggest you change the title of this field to something else (eg. ProductName). Using name as a field name could create problems for you in a...
  18. D

    Count of query lines

    if you want the top 50 records in a query use the TOP predicate: SELECT TOP 50 FirstName, LastName FROM Students WHERE GraduationYear = 1994 ORDER BY GradePointAverage DESC; the above query will display students with the top 50 grades. Dave
  19. D

    multiple users

    you should have the tables in 1 db (back end - BE) and the user interface (front end - FE) in a 2nd db. A copy of the 2nd db, linked to the 1st db, should be installed on the hard disk of each user. This way users can access the BE at the same. Access will still block some of the records used by...
  20. D

    checking part of the value in a field

    g'day, I have a form with a text field (txtDirName) from which users can select a directory. The directory can be selected at random but must partially contain the value of either "Imports" or "Clearances" (eg. V:\ManufacturingData\Imports). I want to make 1 of 2 buttons visible based on the...
Back
Top Bottom