Search results

  1. Joe8915

    Question Combo boxes prevent duplicate names

    I found this piece of code that might work. I place this code in the Before Update 'make sure you have two names entered first if len(txtfirstname)>0 and len(txtlastname)>0 then if nameexists(txtfirstname, txtlastname) then call msgbox("The selected name is a duplicate ...") cancel=vbcancel...
  2. Joe8915

    Question Combo boxes prevent duplicate names

    I have attach the sample db. On the Create a New Batch forms. I do not want the user to choose duplicate names on one record. See 1st record. I have to have drop downs for all the individual employees, due to different time’s different pay as well as different employees with a combination...
  3. Joe8915

    Question Need a idea for a date field, for due dates

    You are right Brian, I should have look more through the form
  4. Joe8915

    Question Need a idea for a date field, for due dates

    I have a form for Due dates based on a date received. Real simple: Field is reads: =Date()+5 If it lands on a Friday, I need to add 2 more days If it lands on a Holiday add 1 more day Have not figure out if a Holiday lands on a Friday, then I have to add 3 more days. I was messing around with...
  5. Joe8915

    Question Split Form.. Can you use a sum value in the page footer

    In a Single view, you can use the =Sum([your field]) to get the sum value. But is it possible to use it in a split form?
  6. Joe8915

    Error code in a subform

    I thought I might try a differen't approach for a little bit more of a understanding: In my query I have the following: Strrttime Endtime Minutes: DateDiff("n",[Strttime],[EndTime]) Total Hrs Work: [Minutes]\60 & Format([Minutes] Mod 60,"\:00") PayAmount...
  7. Joe8915

    Error code in a subform

    I have done this a thousand times never had a problem before. Trying to get a sum on a subform. The field is called PayAmount. In my query it looks like this: PayAmount: Round(CCur(Nz(DateDiff("n",[Strttime],[Endtime])*[AHrRate]/60,0)),2). In my subform I added a text field and added the...
  8. Joe8915

    Date and time function

    OK guys, I finally got it to work. this is what you all were trying to explain to me. First I had to add another field for minutes Minutes: DateDiff("n",[Strttime],[EndTime]) Then add Total Hrs Work: [Minutes]\60 & Format([Minutes] Mod 60,"\:00"). Thanks to the both of you for helping me on...
  9. Joe8915

    Date and time function

    Thanks all for the quick reply. I am still not getting the result that I am looking for. I pasted the following code into the qry 60*((DateDiff("n",[Strttime],[EndTime])/60)-DateDiff("h",[Strttime],[EndTime])) And I get the -30 which is correct, but how do I get it to where it reads 6hrs and...
  10. Joe8915

    Date and time function

    Very Simple Query using the date and time function Trying to show the total hours work. My result is: Start End Total Hrs Work 5/3/2011 9:45:00 AM 5/3/2011 5:00:00 PM 7 It should read: Start End...
  11. Joe8915

    Activate an ole object by clicking a button

    I received a error message. I know its me. My "formname" is "tblPayEstimates Subform" and its in a subform as well. My objectname is located on a different drive C:/ob/. So the bottom line how would I write the correct code. Thanks
  12. Joe8915

    Question Send email command with a twist

    I just use the macro "send object"
  13. Joe8915

    Question Send email command with a twist

    Paul, see the attach in what I am referring to. Also thanks for being so patience with me.
  14. Joe8915

    Question Send email command with a twist

    Paul, thanks for the quick reply. Ok let me try this again (my fault). I want to send an email out. I want in the subject line of the email the field color to end up in the subject line. Here is the bottom line. IF I have three fields in my form, I want those to show up in the subject line...
  15. Joe8915

    Question Send email command with a twist

    I have accomplish everything in sending a object in a email. Now for the twist. In the subject matter, I woud like to include three fields. Is there a way to where I can do this? For example, lets say the field is call color and in that field I have selected Red. I want red to show up in the...
  16. Joe8915

    Question odbc--call failed error

    Found many answers on this subject. Looking for the simple fix. Has anyone ever just had to change the ODBC refresh interval (sec). I will attach my error message for the ODBC and the screen shot of the ODBC refresh. Thanks
  17. Joe8915

    share db with users in different States

    FYI, I just found out that using Frontpage I can import the db into a Webpage, which then I can use the free host. So far no problems.
  18. Joe8915

    share db with users in different States

    aprpillai, thanks for chiming in, checking all of my options here. Bob, my man glad you chime in on this. I can't tell you how many times you got me out of jams. So it sounds like I can't just upload the db on a site and use it from there. Just throwing this out, I did find site where you...
  19. Joe8915

    share db with users in different States

    Have no clue on the best way to do this. I have a db and I have 3 users that need to update the db. These users live in CA,TX and WY What is the best way to do this. How to a Website? How to a Server? Gee, it sounds so simple even when I type it in. Thanks
  20. Joe8915

    Question For Loop not intialzed

    Guus, Sorry I have not reported back as soon as I should have. I have SQL running as my BE. I was adding new fields to previous tables and adding new tables as well. I refresh my tables where I added the new fields, then used the wizard to add the new tables to the BE. Then I noiced I added...
Back
Top Bottom