Search results

  1. motscotland

    Adding AND/ OR to strSQL

    Thx m8. It works a treat!! A nice way to end the week. Cheers, Myles :D
  2. motscotland

    Adding AND/ OR to strSQL

    Thanks. I have spent a long while this morning 'playing' with the function......AAARGH!!! It doesn't work! I don't know how to relate the two together. Function Public Function JoinType(strJoinType As Long) 'Check for the controls to give AND/OR type If JoinType() = 1 Then...
  3. motscotland

    Adding AND/ OR to strSQL

    After searching the forums and some serious head scratching I now have this: 'Check for the controls to give AND/OR type Dim strJoinType As String Const conMAXCONTROLS = 9 For i = 1 To conMAXCONTROLS - 1 If Me("optClause" & i) = 1 Then strJoinType = "AND"...
  4. motscotland

    Creating a new reference

    Thx! This forum always has the answer! Merry seasonals to all. Cheers, Myles :D
  5. motscotland

    Adding AND/ OR to strSQL

    Thx FoFa, The idea of the search form is to find appropriate people for upcoming contracts from our current database of candidates. So, I am attempting to make the form as versatile as possible. Ideally I need to give the option to bracket certain criteria as you mentioned FoFa - ie- (Qual -...
  6. motscotland

    Adding AND/ OR to strSQL

    Hi, I have a search form that takes values from 7 combo boxes and builds an SQL query which then outputs a filtered list. The code is : Private Sub cmdOK_Click() ' Pointer to error handler On Error GoTo cmdOK_Click_err ' Declare variables Dim db As DAO.Database Dim qdf As...
  7. motscotland

    Creating a new reference

    Thanks for that Neil! However, apologies for my ignorance but HOW do I refer to the value in a formula? The code builder dialog is new to me and my knowledge of VB code is very limited! I can set the value to appear in a list box which can then be 'copied' to the ref field by selecting it BUT...
  8. motscotland

    Creating a new reference

    Hi. I am looking for a way to look up the latest reference code of a record, increment it by 1 and then store this new value on the main data entry form - this ref and other newly added data (entered on entry form) then to be added as a new record to the main data table. Main table is cvlist...
  9. motscotland

    Please point me in right direction!!

    PROBLEMS!!! 1) I have tried to convert db to A97 - it won't do it. I get a Field Type Mismatch. 2) Even after db is split and zipped the bits are db - 203Kb db-be - 176kb As file limit is 100kb I cannot post it here. Am I ever going to get to the other side?? :eek: Cheers again, Myles :(...
  10. motscotland

    Please point me in right direction!!

    Thx for reply neileg. Yes - I have compacted and repaired! The db was about 14Mb and it reduced to just over 2!! There are various 'test' tables/forms that I have removed as well but even then it is still just over 2mb after C & R. I have tried to follow examples in other threads regarding two...
  11. motscotland

    Please point me in right direction!!

    Hi all. Over the last couple of weeks I have had some excellent help from the guys in this forum which has meant my DB is very much getting to where it should be. It has to be presented in draft form on Wednesday!! :eek: :eek: :eek: However, I am now at a stage where I require assistance to...
  12. motscotland

    Need Help - Junction tables?

    Really getting there now!! Cheers m8! Myles :D :cool: :D
  13. motscotland

    Need Help - Junction tables?

    Thx - making headway now!! Cheers, MoT :(
  14. motscotland

    Need Help - Junction tables?

    Hi, I am trying to make a sub form that will show ALL the qualifications for an employee on the main Employees details form. The qual details are held in seperate tables. I can make a subform that shows each record singly but it doesnt tally with the record showing on the main form. How do I a)...
  15. motscotland

    Can't get multiple records to display

    OK - I have done much reading about normalisation and the like. I have downloaded and examined the dbArtists example. I couldn't really follow what it was doing at all, or how it relates to what I am trying to do. I am not getting this to work at all!! The 'junction' table shows blank!! Not a...
  16. motscotland

    Can't get multiple records to display

    Thanks for the reply and the links. Reading about normalisation now! It looks like I need a total rethink to get this to work properly!! Cheers the now, MoT :cool:
  17. motscotland

    Can't get multiple records to display

    Oooops!! I tried the Junction Tables and now I am really in a major mess!! :confused: The relationships are not as they should and the main table (imported from an old FoxPro db) is utterly Kn'k'rd!!!! :mad: Am I better to have lots of small tables (small as in few fields) which are linked via...
  18. motscotland

    Can't get multiple records to display

    Thanks for your prompt reply. I shall investigate Junction Tables after lunch and no doubt will have more questions as I have never used them before!! :eek: Cheers the now, MoT :cool:
  19. motscotland

    Can't get multiple records to display

    HELP!! Can't get multiple records to display Hi all, I am a relative newbie to Access development and have hit a problem I canot seem to solve!! I have a main employees table, a qualifications table and a qual code table. They are all linked appropriately BUT I cannot find a way to display...
Back
Top Bottom