Problems With Break Points
May 25, 2005
I have a very annoying problem with my break points that I can not figure out how to fix. I have a database that when I place a break points on code it will not break the code and go into debug. I have created a very basic form with one button and the following code:
Option Compare Database
Private Sub Command0_Click()
Dim str As String
str = "this is a test"
MsgBox (str)
End Sub
The message box will pop up but the program will not stop on either on the str... line or the msgbox... line. I'm sure some how or another I turned off the debugger but I do not know how to turn it back on.
Thank you for any help.
View Replies
ADVERTISEMENT
Oct 16, 2013
Does your Tools Reference have an MS Office 15.0 Object Library?
Just had to share this strange occurrence in the VB Code Module:
I use breakpoints all the time, was just using them yesterday.
Noticed that some events seemed to act differently this morning. The front-end was approaching 88 MB (after compress) so it is time for a change anyway.
Created a new blank Access dB (Access 2010) and imported all objects from my last backup revision. Reset the home page and tools References. Matched the settings side by side. As usual, the database shrank from 88 MB to 60 MB. The import all objects will usually compress things about this much.
From the screen shot, put breakpoints in previous code, added a new Lost-focus event and added a message box. None of the breakpoints work. The message box fires on the lost_focus and all of the code in the Click event works fine. But, not a single break point would work.
Totally powered down and restarted the Windows 7 32 bit Enterprise workstation. Still no change.
Took the screen shot of Tool-References from the code module of a two week old archive version. Used it to evaluate my new imported object database.To my surprise, the Microsoft Office 14.0 Object library is now Microsoft Office 15.0 Object Library.Also put all the objects back in the same order. Saved and closed the new imported object database.Now, the breakpoints work just fine.
I had failed to reference the Office 15 Object Library and the VBA Extensibility 5.Office 14 Object Library is nowhere to be found except on my 2 week old backup archive.
Is this a Microsoft auto update? Is this what drives the breakpoint in the code module?
View 3 Replies
View Related
Jan 28, 2008
This is probably an easy question, but I can't figure out how to get a table to show numbers in 2 decimals points when they are inputted with 2-5 decimal points. I changed the DATA TYPE to Number and DECIMAL PLACES to 2, but when I do that, it just rounds it to a whole number. Please help, thanks!
View 6 Replies
View Related
Jan 6, 2006
Hi, I have this query and I would like to have the avg display with only 2 decimal points. This is my SQL and I think I have to use this code but I'm not sure.
FORMAT(CountOfStudent Attended,'.00')
If I ad this after the SELECT statement my query will not work. What am I doing wrong?
Thanks!
~D
This works
SELECT [Attendance for Avg].CRN, Avg([Attendance for Avg].[CountOfStudent Attended])
AS [AvgOfCountOfStudent Attended]
FROM [Attendance for Avg]
GROUP BY [Attendance for Avg].CRN;
View 3 Replies
View Related
Jan 30, 2013
Made an access data base for our company policies and procedures.
Fields are:
Section
Section Title
Policy
Explanation
Related Documents - (hyperlink field)
Running a query on the table for the report the delivers the policy.
the Section Field is Rich Text - this is the only way I can figure out how to display decimal point divisions like, 1.1.0, or 6.5.3 (for relevant sections).
Query won't return anything when I set a parameter on Section Feild and I suspect it's because of the Rich Text issue. I've tried smart tag but no avail.
And the next thing I want to do is have an index that gives me Section and Section Title with a go to. How best to achieve that???
View 3 Replies
View Related
Jul 19, 2014
one more thread of mine today
I have this table:
-> tblTest
Code:
test_id | test_Name | test_Date | test_value
------------------------------------
1 | Company A | 01.01.2010 | 0,90
2 | Company A | 02.01.2010 | 0,95
3 | Company A | 03.01.2010 | 1,10
4 | Company A | 05.01.2010 | 1,05
5 | Company B | 01.01.2010 | 0,9
6 | Company B | 02.01.2010 | 1,20
7 | Company B | 03.01.2010 | 1,15
8 | Company B | 05.01.2010 | 0,95
9 | Company B | 07.01.2010 | 0,80
The important level is 1,00
Now I will, for each company, check:
- Is the value of ID-1 >1 AND the value of the ID-2 <1, THAN give me a 1
- Is the value of ID-1 <1 AND the value of the ID-2 >1, THAN give me a -1
In this example the result should look like this:
Code:
test_id | test_Name | test_Date | test_value | test_Code_result
-------------------------------------------------------------
1 | Company A | 01.01.2010 | 0,90 |
2 | Company A | 02.01.2010 | 0,95 |
3 | Company A | 03.01.2010 | 1,10 |
4 | Company A | 05.01.2010 | 1,05 | 1
5 | Company B | 01.01.2010 | 0,90 |
6 | Company B | 02.01.2010 | 1,20 |
7 | Company B | 03.01.2010 | 1,15 | 1
8 | Company B | 05.01.2010 | 0,95 |
9 | Company B | 07.01.2010 | 0,80 | -1
Probably I have to carry out this in vba.but i dont know how I can calculate across the datapoints (rows).
View 14 Replies
View Related
Aug 2, 2006
Can you help we have a data with a list of jobs that scores points, I need to build a query or scirpt that will add 5 points every 30 day fro the date the job was submitted this will help old jobs come the top of the list.
View 1 Replies
View Related
Apr 26, 2006
I have a textbox called txtcomments on my form. It is bound to a table field defined as Memo. Now i normally would enter text and produce a report from the comments in my table.
I want to be able to enter text like this in my form, so that my report can be formatted like this: All in one textbox (memo table field).
Like this:
*************in my txtbox************************
Accomplishments
Etc
Etc
Etc
Current / Upcoming Work
Etc
Etc
Etc
Risks / Challenges
Etc
Etc
Etc
***************end of txtbox***********
Is this possible? If not, how do you think i can achieve this? I am open to suggestions, please help :D
View 9 Replies
View Related
Aug 30, 2006
My form has a Memo field that stores "To Do" descriptions. My user wants to be able to add bullet points next to their entries. There could be multiple To Do's in a single field.
Any help is appreciated.
View 9 Replies
View Related
Apr 29, 2014
I have a problem when storing a calculated field with two decimal points. If I set the field to double, fixed, 2 decimal points. For the field it will show the calculations as:
21.364 as 21.36
21.563 as 21.56
21.272 as 21.27
Which is how I want it to be, however when I run a summary of the field rather than showing 64.19 it calculates as 64.20, I know that this is the correct figure but is there any way I can get it to show me the 64.19?
View 1 Replies
View Related
Aug 28, 2014
So I have a simple table with Date, Points Earned, Points Used and Client ID number. Id like to tally the points for each client ID, after each time they either use or earn points. How do I do this?
View 14 Replies
View Related
Apr 24, 2015
I want the user to be able to see the source/reference of (many of) the different data points in my database, so I need to store sources/references in the database itself. I want to have all references in one single/common table (list of references). Each reference may be the source of many data points, in different columns in a given table, and in different tables. Is this possible, and can it be done in an elegant way?
View 2 Replies
View Related
Apr 15, 2013
I have a report that is purely for points gained from products. Each product is split into 3 (e.g. Investment A, B + C) and there is a indicator that means the points gained can be added up (e.g. I for Investment and S for Savings).
I have made the report which is many unbound fields. There is a summary section for all points added together with fields Total Amount, Monthly Target, Quarterly Amount and Quarterly Target.
Then the report is split into each of the 4 products (Each of these have different amounts of points. Number indicates it):
Investments (10), Savings (15), Pensions (15) and Protection of Life Savings (20).
Each of these have 4 fields - Total Amount, Target Amount, Quarterly Amount and Quarterly Target.
I need a way to generate these point scores using the Product_Points field. I already have Quarterly Target and Target Amount because there is a set field called Points_Annual_Target.
EDIT: I also don't want it to come up with the 'insert parameters' so all the info is one page.
View 1 Replies
View Related
Sep 23, 2014
I wrote a basic query that allows 1 field to search another, and if there is a match, it spits it out, however, I am getting 20,000 matches. I want to add another level of query to reduce the 20,000 matches down to 1 or 2 or none...
So I consolidated a government list, publicly available, into 1 field, and created a table that I can use as my query against the large government list:
SELECT [Consolidated Denied Party Report].*, [Consolidated Denied Party Report].[31]
FROM [Consolidated Denied Party Report]
WHERE ((([Consolidated Denied Party Report].[31]) Like "*" & [Please Enter Your Search Term] & "*"));
this allows me to search for a word, like, create, and it gives me every single result however it also gives me hits to words like PROcreate, which is fine on one hand because it shows possible false flags, but it would be nice to also be able to query down a level.
I now want to have the query look at the word "create" but also look at another column that is say the country... Germany.. and if I have text in the second column, only give me a result if the word create and germany are in the same field.. if create and Italy were in the same field, it would not be a hit.
View 2 Replies
View Related
Feb 5, 2008
hi i want to create a loyalty points scheme though a database,
general rulse apply 1 point per £1,
when the customer spens some money the staff then go to the machine and input the relevent data.
then a statment will be printed out for that customer with the points to date, and thier purchase the amount of point collect with the new total.
To search the full name and postcode would be adiquit as the printed statment could be lost and so could the customer id get confused by the customer.
for the report the layout would look like this:
eg
customer ID
cathy smith
e-mail,
address,
postal code,
02/12/2007 points to date 200
05/01/2008 puchase made £30.00
05/01/2008 new points total 230
if they use points it would look like
02/12/2007 points to date 200
05/01/2008 puchase made £30.00
05/01/2008 points use 125
05/01/2008new points total 100
point can be enterd manually and removed manually as customers want to save like a saving scheme
please help me with is as i have no idea where to start and if it posible, and limited knoledge of access
thanks in advance
View 4 Replies
View Related
Jul 1, 2015
I am trying to create an attendance database, our company introducing the point system attendance,
Called Off (CO) 2 points
Left Early (LE) 1 Point
Tardy (Tar) 1 point
Employee can reduce point if they have perfect attendance for 90 days from the last day of violation. For example, an employee absent on 01/01/2015, he will received 2 points, the credit will giving on 04/01/2015, if there is no violation, but if he absent again on 03/31/2015 not only he will received 2 more points his 90 days will start from 03/31/2015, now he will eligible to get credit on 06/29/2015 and so on.So far I have created 3 tables and 1 query.
Tables
Employees: Id, Last Name, First Name
Points: Id, Description Points
Attendance:Id, Date, Employee ID, Points ID
Query
Date
Employee ID
Last Name
First Name
Point Description
Points
how and which formula to use which calculate the points based on above example.
View 14 Replies
View Related
Mar 23, 2014
I have a Table with a Field set to Number, Single, Fixed, 2 Decimal points in which I enter Hours (ie 11.25) then at some point I want to extract those new entries to create a Text file transfer.
I have a Macro which extracts those new entries from the main Table and copies/appends them to a new Table which contains only the new data I need to create the File to upload into a Payroll system (using TransferText option).
It all works well EXCEPT, the File it creates insists on showing 8 decimal points and I just cannot get it to show 2 only.I have tried using a calculated field, setting the secondary Table field to Text.why or where these 8 decimals are coming from.
View 2 Replies
View Related
Apr 13, 2006
I am a newbie, so please forgive me for such an easy question, but I am stumped. I attached a text file that shows the data I am working with. What I need to do is take each product (labeled Prod) and do a weekly sum on the quantities and compare against a set number to see if the quantity is lower or higher. For instance, I need to take column 12, regardless of value and compare it against set number. If the quantity is less, then I need to add the value of column 12 to column 13 and compare the summed value against set number. Again, if the sum is less than set number, I then need to take the value of column 14 and add it to the summed value of the previous step (sum of 12 & 13), then compare this new sum to set number. This process keeps taking place until I reach a summed value that is greater than set number. Once that happens I need to identify the column that sent me over the set value and hold that data. For instance, if column 33's (out of 52) summed value takes me over the set number, I want to know that it was column 33, so I can run further calculations against that value. The column header's are week numbers and I need to identify order points based on lead times and when I will run out of material. Is this beyond queries? I think so, but if it is, I don't know how to exactly begin the code in VBA either. I think I would use an If then Else stucture with a counter switch set from 1 to 52, unless comparison exits function, but not certain. HELP?????:confused:
View 3 Replies
View Related
Oct 17, 2005
How Can I remove line breaks in a string.
View 6 Replies
View Related
May 3, 2005
First of all, thanks for any help in advance, I really appreciate it. This is my first big project in Access. I am trying to design a database for timesheets for all the departments at work. We have 21 departments with various numbers of employees in each department. At this point, I would like this database to be able to have users enter their own hours each week and print their individual report of hours worked then designated users add employees, look at previous payperiods and print out a master report as well as past reports. One pay period here is two weeks, with the days starting on Saturday, though I would like the database to keep track of one week at a time and then be able to group two weeks together to make a pay period. Each employee can work regular hours in a day and can also take up to 6 type of leave plus work overtime. So there will be 8 types of hours that could be entered. So far, I made tables for each different type of hour and created fields for each day of the week and created relationships to the employee table and pay period table. I made a form in datasheet design, but it didn't work out well. For lack of a better thought for them to enter their hours, I was going to design the form to look like this (but with spaces like a table);
Employee(fn) Employee(ln) Payperiod
Sat Sun Mon Tues Wed Thurs Frid Totals
Regular Hours
Vacation Used
Comp Used
Sick Time
Overtime
Holiday
Unpaid Leave
Paid Leave
The only thing is that I can't get the forms right and it seems like a lot of wasted space since employees will rarely take holiday, paid leave and unpaid leave. Is there a better way to design this?
I also have to take into account security. I eventually have to be concerned about departments only having access to their own records and employees within those departments only being able to access their own hours (except for designated users to do the master sheet). I haven't had any training or experience in access database security. Is there a way to limit records in a table or would I need to create a seperate database for every department?
I am attaching my table relationships in case I didn't describe this very well.
Thanks again for any help. If you need any further information, let me know.
View 1 Replies
View Related
Nov 28, 2005
Hi.
I have a table that has 1 field called IP
it containes IP addresses as data like this.
IP
255.254.253.252
255.251.250.0
Is it possible to have a query that would break this up so it becomes a new table with 4 fields like this:
IP1 IP2 IP3 IP4
255 254 253 252
255 251 250 0
I'm a beginer in this and I could not find a way so for to break this apart correctly.
Please help.
View 3 Replies
View Related
Apr 28, 2008
I am getting data passed to me in one field that needs to be broken apart. The data is first name, middle name, last name and birthdate but its in one field that looks like this:
john/mark/doe/06121972
Is it possible to break apart this field into 4 separate fields?
View 4 Replies
View Related
Jul 27, 2011
how to populate a textbox with a line break?
=[Forms]![Violations]![cboSection4] & i want the line break here & [Forms]![Violations]![cboSection5]
View 8 Replies
View Related
Apr 25, 2005
Hey, I tried searching for this one, but I'm not really sure what to search for.
I am running a report that is double sided. However, I do not want the start of the next group, on the same physical page. I also do not want a starting blank page (as I thought about inserting a blank page after the section).
Any way to do this?
Maybe I have to write a function or something? Depending on if the page is an even or odd number? I honestly have no idea.
Thanks for the help!
View 3 Replies
View Related
Sep 7, 2006
I have text in a number of fields that I want to insert into a text box on a report. The size of the text box is large enough to accommodate, but I want each line to have a linefeed (or carriage return) before it.
The report is based on a query. I created a field in the query that consists of something like:...txtText1 & CHR (10) & txtText2 & CHR (10) txtText3 AS MYTEXT.
What I did was to set the control source on the text box to MYTEXT, hoping that there would be nice linefeeds in between the fields. Unfortunately, all I got were some funny-looking boxes.
What's interesting is that you CAN insert a linefeed into a memo field and that linefeed will display properly. I just don't know how to force one in there to separate lines of text.
Any ideas?
SHADOW
View 10 Replies
View Related
Mar 30, 2006
Hi!
1. If accidently a record or two in a sequence are deleted, how will you know that this has happened! What type of validation can be enforcedto prevent this?
2. How do you make your Tables, Quries, Forms, Reports, Macro tamper proof?
Please help!
Orsonros
View 2 Replies
View Related