Search results

  1. C

    can I populate multiple tables in one go, from a single form?

    Hi Folks, I am creating a database for a friend, the database has four main tables and and one intermediary table ( to remove any many to many relationships) I have popluated the DB with some test data manually and my queries thus far appear to be working correctly. What I need to know now is...
  2. C

    testing for a Sunday?

    as I said above, I changed my logic and run Sunday as a separate query and added it during the final calculation: ' if less than 47.5 hours are worked, then no overtime If Me.txtResult <= 47.5 Then Me.txtExtra1.Value = 0 Me.txtExtra2.Value = 0 End If...
  3. C

    Error in Form Code (Error 3061)

    Have you looked at your query in SQL View? You are basing your form on a query yes? Create a query where your criteria for the date is similar to the following: SELECT sum(Cost) FROM tdatInventoryRec WHERE recdate>=WeekStart AND recdate<=WeekEnd That is to say, whatever your WeekStart...
  4. C

    testing for a Sunday?

    After walking away from the problem for a day or two, I realised that I can get the total hours for Monday thru to Saturday using existing my sum query (instead of Monday thru to Sunday), and fetch back the Sunday seperately, then add Sunday on at the end. Silly me ;) Sometimes one can stare at...
  5. C

    testing for a Sunday?

    I forgot to add that my application uses a calendar object to select the startDate. I use an onclick event to set and calculate the endDate for the week. Basically the endDate is the startDate plus 6 days, so it would be the sixth day that is the Sunday. Also, I am now thinking this may be more...
  6. C

    testing for a Sunday?

    Hi there, thanks for the code, but could you please explain it? what is vbSunday? Can this be used for any day of the week vbMonday etc? and is weekday an internal function? Please excuse my ignorance, I would just like to understand the code rather than just paste it in willy nilly so to...
  7. C

    Please help me simplify this query

    I would have thort that more than a little complex for mere homework wouldn't you? I've just completed a computer studies degree and have not covered this topic, still not sure if I understand it completely either ;)
  8. C

    testing for a Sunday?

    Hello peeps, I have been working on a hours checking application, in which the user can enter their worked hours for the week and the application calculates how many hours at normal rate , time and half rate or double time rate have been worked for the week. All has been going swimmingly, with...
  9. C

    Linking update queries to check boxes

    I suppose you could have a yes/no field, as a boolean and use it as a flag. That is to say, test if it is either yes or no and perform the desired operation upon running a query against the value. create a Form based on a query (which in turn is based on the table with the yes/no field)...
  10. C

    Normalising.....how far do you go?

    3NF should suffice in most cases, but then again that is only my opinion. As for your redundant data (repeating info) think of functional dependency. Does it depend on the entity? What I mean is, does all the stuff about the policy depend on the customer? Or does a lot of depend just on policy...
  11. C

    Urgent Help Needed for new system

    you are looking for a multiple tabled, relational database. You need a customer table with customerID, name etc all the usual customer information, 16 digit card number? set the id (primary key) to a 16 digit number (5555194600000001) and then set it to autonumber. alloting values and...
  12. C

    is relations a kind of ERD

    me too, I heartily agree
  13. C

    MS Acees has encountered a problem

    have you checked that the data required by the original query is not corrupted? if the query fails, it could be a cascading result. double check that the query you are calling is working correctly by running the query from the query window.
  14. C

    Switchboard Problem

    It's most probably a typo, check the doCmd code behind your button, or even try this code (obviously replacing the names for your forms) Dim stDocName As String Dim stLinkCriteria As String stDocName = "frmThaYouWantToOpen" DoCmd.OpenForm stDocName, , , stLinkCriteria...
  15. C

    Search field on Form

    Take a look at this link, it helped me immensely. All I had to do was replace the variable names for it to work for me. My form only had two fields which were based on a query, I added an extra text files and command button, pasted the code and it woked like a charm...
  16. C

    queries not working

    and what criteria you are using for the query, wihtout this, no one can help you.
  17. C

    incrementing date as a primary key?

    cool cheers
  18. C

    Open a form from a query

    As the person above states, you ned two tables one for the customer and one for the sales, you need a primary key field called something like customeID (or something similar, it doesn't matter what it's called, it just hasd to be unique) for the sustomer table, set the primary key field to...
  19. C

    incrementing date as a primary key?

    silly me, all I had to do is use the format option in design view doh:D
  20. C

    incrementing date as a primary key?

    Hi there, Thanks for the prompt reply, is it possible to have the Date without the hours, minutes and seconds? Although your suggestion does help immensly thank you
Back
Top Bottom