User Profile
Collapse
-
Thanks for that it helped a lot as my mind was pickled, in fact i had tried that earlier on but as always with dates and times was unsure, but once i had that corrected i found a further error which was that i had in fact set [ctech] in the table to a Text field (doh) why the hell would i want a text field to store technician id's . well its getting there now and after that i have to alter the master table and correct any issues from the text field... -
AH ha, flaming quotes lol i thought i needed a hash and as you can see i used them in the code above newtime = "#08:30#"
but i was using two hashes so i will try your method and let you know.
thanks
RabbitLeave a comment:
-
id is autonumber, 2ndtime is long time, ctech is number, ctype is number.Code:goodtime = Nz(DCount("ID", "timefix", "[2ndtime] < ""08:30:00"" AND [ctech] = " & Rst![ctech] & " AND [ctype] = 1"), 0)Leave a comment:
-
Perhaps someone could suggest a better way of achieving what i need.
so working with a single table that consists of date, techid, type of clocking, on time and off time + edited ontime and edited off time (not entire list or actual field names)
i need to do the following.
For selected date range i.e between 01/01/2012 and 08/01/2012 loop through all records and where the type of clocking = 5 check if its before 08:30 and if it...Leave a comment:
-
-
dcont within a loop returning error
Hi all im struggling with this and some help would be great.
overview: ive written a workshop time and attendance program and all works great however my boss has found that when doing a wages print out to show in and out times for the week some staff arrive early for the shift and remain on idle time until after shift starts, thus they get paid too much time, so i decided to write a function that will run when loading the wages section before... -
Default printer margin settings in accde
Hi all im writing a narcode label app and all is good except whenn i distribute as accde for runtime the report margins change and labels are messed up.
I have a code to change the default printer to the label printer and then print the label then change it back to original howeverthe margins are affected.
As this is for small labels the printer runs with zero margin.
I have set the default margins in access 2010 under database... -
Hi Thanks for the reply
Using Access 2010
file type is accde
mostly using macros to process variables then open new form and then close old form
depending on variables sometimes a macro will runcode() then vba will execute udate statments then the macro will contimue and do the open new form and close old form bit.
i suppose i could stop the macor after the runcode() and then use vba to close and open the...Leave a comment:
-
Hmm, i think i had this or somthing like in access before. i might be wrong but i tend to cobble things to get them to work and i think i ended up creating a textbox and seting it to do a dlookup for the required value, then i think access could not work with the value from the dlookup although it did display the answer so i think i then added another text box and set its value to be that of the previous then used the new text box value in the calc....Leave a comment:
-
Pop up form sometimes opens behind another, why?
Hello all, im fairly new to access but learing fast and i have written a tuch screen app to record mechanics time and work clockings, it works very well i feel and is a huge improvement on our previous commercial app but i have one issue..
my app runs on a 12" tuch screen monitor attached to a pc, the app runs at start up and the first form to open is a splash, this form then loads a hidden form to keep a query open and save repeating...
No activity results to display
Show More
Leave a comment: