Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by villan60

  1. villan60

    Using Dates

    Thanks, I had not thought of using TOP I need to go away and ruminate over this. Thanks for your help. Dax
  2. villan60

    Pricing calls

    Thanks for the feedback... I have studied your suggestion a bit, and I can't get it to work because the same calltype can apply to different plans but at different rates. But you have given me an alternative idea, something like this... tblCallPlans PlanID PlanType Plancode Desc Indate Outdate...
  3. villan60

    Using Dates

    You are correct, I realise that it does create an opportunity for integrity errors. Something I hope to avoid through the use of forms which will automatically fill in the additional field with the same date. You notice I did say it was a way of checking the integrity, not aiding it. Which is...
  4. villan60

    Pricing calls

    Hi I need to be able to price calls made by phones. The way that I am doing it seems to go against design principles but I can't come up with a better way of doing it. I thought maybe someone here could point me in the right direction. Each call record tells me what type of phone is making the...
  5. villan60

    Using Dates

    That is a good point... I do find it useful having the outdate for 2 reasons: 1) If I need to select the applicable record for a specific date I can just select for indate < date and outdate > date. 2) It's a good way of checking the integrity of the database, because if an indate does not match...
  6. villan60

    Using Dates

    Hi I have a fair amount of experience with databases. I am currently redesigning a system in Access for tracking and billing phones. There are some things that I would enjoy some feedback on. The first is the question of dates. Phones change their status over time, so I have a table with the...
  7. villan60

    Showing a subform that has no records

    I don't quite follow what you are doing there. In the interim I have worked out that I can display the form by saying me.subform.form.allowadditions in the addnew button of the main form. There are some small issues I still have to work on but I am sure I will be able to sort them out. Thanks...
  8. villan60

    Showing a subform that has no records

    When I go to a record on my main form that has no related records in the subform recordset, the form does not display. This obviously happens when I add a new record to my main form as well. I need the subform to be displayed though, so that I can add a related record. Any ideas? Villan
  9. villan60

    Strange results when subtracting 2 fields

    Thank you... I suspected that there might be decimals hiding somewhere and I guess I should have thought of using round myself... it works fine now. thanks for your help Dax
  10. villan60

    Strange results when subtracting 2 fields

    I have a table with telephone call records. One of the fields has the price of the call and another contains my calculated price (to check that the charged price is correct). I have a query which subtracts the one from the other and is supposed to show me those where the diff is <> 0. So that I...
  11. villan60

    Dates in SQL

    Thanks for the response. It seems that dates do have to be in American Format when using SQL in VB (according the the Access help). Thus I am using FORMAT and it is working well. Thanks Dax
  12. villan60

    Dates in SQL

    What is the story with dates in SQL? Do they have to be in American format? if so, how will I convert my dates in my fields to that format when I construct queries in SQL in VBA code? thanks dax
  13. villan60

    Index problems

    Excellent.. thank you very much the AutoIndex thing was def the problem... any ideas on the second part of my question? where my loop through the index collection is not deleting all the indexes.. here is the code I use For Each Ix In td.Indexes td.Indexes.Delete Ix.Name Next Ix thanks dax
  14. villan60

    Index problems

    I am importing a text file using a file spec. When creating a file spec in Access there is an option to specify for each field whether it should be indexed or not. I specify that none of them should be indexed, and yet when the file is imported it ends up with at least 3 indexes. So I loop...
  15. villan60

    error working with index collection

    Thank you, you were absolutely correct. Could you tell me now, why it does not delete all the indexes? After running that code I drop all the columns from the table and it gives me an error bcos there is still an index on one of the columns. I also am bamboozled by the fact that it creates...

Part and Inventory Search

Back
Top