Does anyone know how to programmatically set the LinkChildFields and MasterFields properties on a Report/subreport? The help file doesn't provide any examples and I can't seem to get the syntax right. Thanks
I would like to create a report in a crosstab format that shows sales per month for a range of products but for each product I want the current year row to be followed by the previous year row like so:
Jan Feb Mar ….. etc
Product A
2007 100 150 200 …..etc
2006 80 120 150 …..etc
Product B...
Does anyone know if there is any way to obtain the name of an object that causes an ‘object exists (3012)’ or ‘can’t find object (7878)’ run time error? I want to create an error handling routine that requires me to know the name of the object that is causing the error. Thanks.
Anyone know whether it is possible to programmatically set the level of zoom when a report opens. The default zoom in and out are either to big or too small. I want to set my own level but don't want to include any additional toolbars.
I have 2 databases, both of which I am the owner and administrator. When I try to copy or import objects from one database to the other, I get a message saying I don't have the necessary permission and to get the administrator or owner, i.e. me, to do it for me. Any ideas?
I have a database that seems to have got corrupted and is giving me a name conflict when I try to change the name of a report. It won't let me change the name from Proforma1Copy to Proforma1. There is no report visible in the database window called Proforma1.
Anyone know how I can fix this...
I have a report that contains an item description and other fields that are numeric. I have set the CanGrow properties of all fields and the section to yes but when the item description grows, the other fields don't grow with it unless they need to. I am using the field border property so the...
I am implementing security in a database but when the user clicks on a command that uses visual basic to open an object they don’t have rights to, the resulting message box alarmingly contains a button that opens the Visual Basic editor. Is there a way of preventing this? I thought of using...
I have a report whose control source is set with the OnOpen event like so:
me.RecordSource = sqlstr
The report previews fine but doesn't print. Strangely, if I try to print it from the database window using the right click print command, it prints. Anyone know what's happening here and how to...
Totally stumped on this one, hence the re-post.
I have a combo box on a form whose results are filtered by a parameter that is supplied by the value in another combo box like so:
Combo1 = country
Combo2 = customers of country entered in combo1
Nothing fancy about this and it works fine but...
I have a combo box on a form whose results are filtered by a parameter that is supplied by the value in another combo box like so:
Combo1 = country
Combo2 = customers of country entered in combo1
This works fine but when I close the form using a menu or button (and not the form's default close...
I am trying to build some security into a database and would like to restrict data viewing according to the user. If I could access the Windows User Name for this, it would be ideal. I believe this can be done using Visual Basic but have absolutely no idea where to start. Can anyone point me in...
I’m trying to run a query that is based on a subquery that is based on another subquery, i.e. 3 queries in total. I can get the SQL of the first two subqueries to work but am not sure of the syntax for the last query that provides the final result. The SQL for the first 2 subqueries which works...
I have 2 queries, the second of which simply groups the results of the first. I would like to do this in code without creating any saved queries, i.e. making the first query temporary. Can this be done and if so how? If not, is there another way?
I have a database that contains sales data from various countries around the world. I would like to restrict the countries that individual users can view the data of, i.e. the country manager for Germany can only see Germany sales data and not say, France.
Can anyone guide me as to how I would...
I have a report that contains 2 subreports, each with a total field. I have a control on the main report that sums the totals from the 2 subreports.
This works fine when both subreports have records but if one subreport has 0 records, I get a #Error. I’ve tried using IsNull and IsEmpty to get...
I have an extremely annoying problem that simply won’t go away. I have a form called ‘Proformas’ that is opened and closed from a menu. The form is based on a table (also called Proformas) and has a combo box that moves you to the selected record according to the proforma you select . Everything...
I am trying to delete records from one table based on the results of a select query.
I have a table called ‘Invoices’ where I want to delete those invoices that are returned by a select query called ‘DeleteInv’. In the delete query design, I have linked this query to the Invoices table by the...
I can’t get a select query to recognise date criteria.
I want to select records between Jan 1st and the current date of any given year. The year is referenced from a control on an unbound form where the user selects various criteria. I have used the dateserial function as below to get the date...
I have created a number of crosstab queries which I can join with a select query to produce a multiple value crosstab as per the standard method. The output I want is as follows:
Product Country1 Country1 Country2 Country2 etc
Sales Budget Sales Budget
The problem is that I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.