Recent content by Will04

  1. W

    testing for multiple values

    Hi vbaInet, Thank you for taking time to respond, much appreciated SELECT Count(*) AS CountOfMembers, [ABHno] FROM HHDetails GROUP BY [ABHno] HAVING Rel2hd='Head' OR Rel2hd='Spouse' OR Rel2hd='Partner' OR Rel2hd='Child'; However, when I run the above code I get the following msg...
  2. W

    testing for multiple values

    Guys, So far, no responses <sigh>.. Is it that difficult??? Will
  3. W

    testing for multiple values

    BTW I'm using Access 2007 Thanks
  4. W

    testing for multiple values

    Hello everyone, I have a table with data on household members and their relationship to the head of the household. Each record has a field ABHID which comprises of the AREA CODE [2], BUILDING NO[4] and HOUSEHOLD NO[2] eg. 02014401 where AREACODE="02" , BUILDING NO ="0144" and HOUSEHOLD NO...
  5. W

    Populating form with previous data

    Hi Everyone, I need some help with this problem. I have a form with which I enter patient info. Patient will normally visit once per year. When a patient visits, I would like to enter the patient's ID on the form and then search the DB for an existing record. If the patient already exists...
  6. W

    Complex Report - can it be done?

    Thanks a million, I used the crosstab query to get it done... Appreciated
  7. W

    Complex Report - can it be done?

    Hi everyone, I'm wondering whether this report can be done, if it can, I'll appreciate any help if getting it done. I have a table with approx 10,600 records of patients with cancer. The fields are - County, Village, Year, Site There are about nine (9) counties, each with up to 15 Villages...
  8. W

    SQL INSERT : What's wrong with this statement??

    Thanks for the tip Gemma Appreciated Will
  9. W

    SQL INSERT : What's wrong with this statement??

    Yep Brian... I could have saved myself a lotta frustrating hours trying to figure out why it wasn't working... :o Thanks again everyone. Will
  10. W

    SQL INSERT : What's wrong with this statement??

    Ryan, What I'm working on is a scheduling/appointment module for a screening application. The patient comes in for a test, is examined and the patient demographics and examination data is entered. At this point the appointment module is selected to schedule the patient's return to collect the...
  11. W

    SQL INSERT : What's wrong with this statement??

    Hi Everyone, PROBLEM SOLVED!!!!!!!!! Apparently I was using the variable name 'dtdob' in a sub to calculate age and the same variable was declared as the public variable... Whew!!!! :rolleyes: Thanks a million, Appreciate all the help. Will
  12. W

    SQL INSERT : What's wrong with this statement??

    Thanks Gemma, Hmmmm.. Up to this point it's ok i.e. the dob entered is stored in the public variable dtdob dtdob = Dob MsgBox "date of birth = " & Dob MsgBox "public variable date of birth = " & dtdob Then I click on a button in the data entry form. In the on click property I again display...
  13. W

    SQL INSERT : What's wrong with this statement??

    Thanks guys. Ryan - thanks for the tip Brian - yes it's an error, it has been changed After changing the date format to short in the form and the table, I'm now getting the date to be 1899/12/30.... Dunno what's going on here!!! :confused: Help.. anyone??? Will
  14. W

    SQL INSERT : What's wrong with this statement??

    Hi Ryan, Thank You, it worked great. One problem though, instead of storing the date of birth, I'm seeing this value... 12:00:00 AM. Any idea what's happening? I use this statement to assign the DOB entered to the public variable /********* dtdob = Dob MsgBox "date of birth = " & Dob...
  15. W

    SQL INSERT : What's wrong with this statement??

    Hi Moniker, Thanks so much for responding.. I changed the VALUE clause as suggested, but when I debug, I'm getting a syntax error... /******** DoCmd.RunSQL "INSERT INTO tblappointments ([apptdate], [patientno], [pfname], [psname], [address],[dob]) VALUES ("#" & [cboapptdate] & "#, '" &...
Back
Top Bottom