Call Up Details From Two Tables On The Same Page

Feb 18, 2005

Hello can anyone help me with my prob. I am trying to call up records from two different tables to display on the same page but haven't been able to get it to work. I have a table called members and another called Messages. The page that the info is called up from is called viewtopic. I can get the topics to display properly but without the members stats with this query:-

'sqlString = "SELECT * FROM Messages WHERE TopicID=" & topicID

but I need the member stats to be displayed too so I developed this query which doesn't work at all:

sqlString = "Select Messages.Topic, Messages.TopicID, Messages.BSection, Messages.MesDate,Messages.Message, "&_
"Messages.Edited_On, Messages.Message_ID, Messages.Member_ID, Messages.Username"
sqlString = sqlString & " FROM Members INNER JOIN Messages "
sqlString = sqlString & "ON Members.Members_ID=Messages.Members_ID"
sqlString = sqlString & " WHERE Messages.TopicID=" & topicID
sqlString = sqlString & " ORDER BY Messages.MesDate "

This comes up with No value given for one or more required parameters which I'm guessing is for the members_ID but I'm not sure. There is a one(members) to many(messages) relationship on the two tables. Can anyone tell me where I have gone wrong in the query?


thanks

Grant

View Replies


ADVERTISEMENT

Reports :: Page Break For Name And Details

Jan 27, 2015

I am trying to page break my report to have it where the first name and surname of the employee has a separate page with the details of each appointment.

I have tried to do it via format on properties but it does not work..

I have attached an image of how the report appears.

View 4 Replies View Related

Queries :: One To Many Relationship Between Tables Containing Membership Details

Nov 25, 2014

I have a table with name, club members details ID etc. This is linked by a 1 to many link (ID) to a table containing details of membership subscription payments. One entry/row per membership period. This second table has DatePaid, Paid (Yes/No), Period. Period contains 2013-14, 2014-15 etc.

I can do a query for those that have Paid (Yes) but when I try one for those that have not Paid (No) or <>Yes I get no result. I only enter members when they have paid. I need a query to display those who have not paid for the 2014-15 period.

I can do it a long winded way copying 2 lists into Excel. One all members. One those who have paid. Then remove duplicates and those paid in 2013-14 leaves those not paid in 2014-15.

View 2 Replies View Related

Tables :: Making Single Field In A Table Containing All Details

Feb 24, 2013

I've inherited a data base which has the address details of our members spread across multi fields i.e. Add 1, Add2, Add 3, Post town, Post code etc.

Not all the fields contain information which means when I do a mail merge for address labels there are blank lines.

I would like to either be able to create a single field in the table (like a memo field for example) which contains all the address detail, or create a mail merge without blank lines.

View 3 Replies View Related

Modules & VBA :: Static Shell Function Call Works But Dynamic Call Fails

Sep 4, 2013

I'm having to recode some old MS Access DBs so they will run in the following environments:

Office 2000 on WinXP
Office 2003 on WinXP
Office 2010 on WinXP
Office 2000 on Win7
Office 2003 on Win7
Office 2010 on Win7

When I wrote my code for Office 2000 on WinXP things were simple because directory paths were the same across all computers and I could hard code pathing when using a shell command to launch other files.

My new approach is to make a function call to the Windows registry to determine the default executable and path for opening a file based upon its extension (see apicFindExecutable in basWindows API module).

I'm able to use code to create a shell call and debug print it to the immediate window. If I put my cursor in the immediate window at the end of the shell call and hit [enter] the external file will open as desired. If I try to open the external file directly through code, I get a file not found error.

To recreate the error take the following steps:

(1) browse to files that are accessible from your computer
(2) click the PREPARE DATA AND OPEN MAIL MERGE DOCUMENTS command button

Shell function call is made by the fnOpenFile function located in the basOpenFile module. There has to be a trick here that I'm missing.

View 5 Replies View Related

Multiple Tables, One Page

Nov 9, 2007

I need some guidance here. I have 3 tables with the exact same column names. Each table has a list of all 50 states in column 1 (one has four of each state) and column 2 is product name. I am trying to use a page to view/edit this information separately (which I got) and all at once (which I need).I this even possible?Maybe this will help...tbl1Column 1, Column 2, Column 3Alabama , MAP , infoAlaska , MAP , infoArizona , MAP , infoArkansas , MAP , infoect....tbl2Column 1, Column 2 , Column 3Alabama , Credit , infoAlaska , Credit , infoArizona , Credit , infoArkansas , Credit , infoect....

View 3 Replies View Related

Tables :: Relationship Is Out Of The Page / Can't Be Seen And Edited

Jan 26, 2013

I have a database, originally made in earlier version of Access, recently converted into Access 2010. Due to the high number of tables relationship page is quite crowded. My problem is that I can't move the page to the most left-upper corner of the relationwhip page where I still have relations but they simply can't be seen and edited; I can't move the page any further with the silpers.

View 5 Replies View Related

Tables :: Link Dynamic Data From Web Page

Aug 28, 2013

I want to be able to connect dynamic web data such as live gold price, exchange rates from the relevant web pages to a table in Access 2010. I have searched the forum without finding any related answers.

I understood that this can be done in Excel by using "Get External Data from Web" where the connected cells will be updated along with live data changes in the linked web page. I could set up a link table from Excel in Access but this would be tedious since the Excel file has to be opened to get the data refreshed everytime I open the Access file.

How to load dynamic data directly from web site to an Access table?

View 1 Replies View Related

Forms :: Update Multiple Tables From A Single Form / Page?

Jun 27, 2013

My database allows you to log issues (see attached)

An issue will belong to the project, the project may have multiple test plans.

The issue will also be the primary responsibility of a company, and that company may have multiple contacts (people)

Now, i could create a form over the top of each table but then if someone wanted to add a new project, testplans for that project, suppliers (companies) for that project AND new contacts for those companies, they are going to end up going through loads, and loads of forms.

So my question is, what approach would you recommend to create a control panel where they could add these items with the fewest number of page switches possible? (preferably none.

View 1 Replies View Related

Reports :: Breaking To New Page If Subreport Cannot Fully Print On Current Page

Nov 12, 2013

I have a report which includes several subreports. There will be times when a subreport prints partially on one page and completes on the next. I don't always want to break to a new page with this subreport. However, I would want to break to a new page if the subreport cannot fully print on the current page.

View 3 Replies View Related

Section Header At Bottom Of Page And Detail Lines On Next Page

Nov 22, 2004

I have a report that lists states and cities within the states. When a state name happens to be at the end of the page the individual cities appear on the next page with no State heading. I solved the second page problem by setting the "repeatSection = Yes" in the Section Header (though I haven't shown that in the example below).

But the previous page (which just shows the State Name and no cities looks dumb. Is there some sort of solution.??
(Actually I would also like any State that continues to a next page to not just have the state name but something like
" Colorado (Continued)" Is there anything I can do in VB to make a page break if the section is going to print but therer isn't enough room for one detail line?

This is what I currently see

Alaska
Ancorage
Prudo Bay

California
Whittier
Anaheim

Colorado
------------------------Page Break ---------------------------------
Denver
Pueblo
Colorado Springs

Deleware
Dover

-------------------------------------------------------------------------------------------

Thanks !

View 1 Replies View Related

Reports :: Page Header - Don't Display If No Detail Records - On Last Page

Jun 13, 2015

If I have a report and it has controls (labels representing column titles) in the page header. Now when I print the report - if it happens that the last page has no detail records - but there is text boxes and so forth in the report footer. Is there a way to not display the page header on the last page?

I have a report where the last page shows the page header - and the field/column labels on the page header - but for which there is no detail records left to display - on the last page. There is report footer information that should display. It just looks weird because the field/column labels show at the top of the page - but there is no data remaining to print under them on that last page.

View 1 Replies View Related

Data Access Page Filter Refresh The Page

Dec 30, 2007

Hi All,

I have a data access page needs a filter by a dropdownlist, the dropdownlist used is a html control and I use javascript to filter the data programmaticlly in the onchanged event of the control.

MSODSC.DataPages(0).Recordset.Filter="AppID = 3";

My problem is, when this statement runs, the page refreshes. But I don't need the page refreshes, it set the dropdownlist text to the default text, not the value user select. The browser is IE7.

How can I stop the page refresh itself?

Thanks and Happy New Year!!

View 1 Replies View Related

Forms :: One Page Form Printing Blank Second Page

Oct 21, 2013

I have one-page forms which print a second page, blank except for a block of grey shading at the top. I have tried moving the content of the form up but that doesn't eliminate the second page. If I look at print preview, every second page of the entire database shows up as blank, regardless of where that happens to appear in the record.

View 2 Replies View Related

Reports :: One Page Report Showing Second Blank Page

Apr 20, 2014

I have a report that should only show 1 page yet I have 2 and one is blank . I cannot find out why?

View 3 Replies View Related

Reports :: Footer To Bottom Of Page Or Page Footer To Last Page Only

Oct 23, 2014

I am trying to create an invoice report. I want to add all the costs from the detail section in my footer. I have accomplished this in either the Report footer and/or the page footer, but the problem is that the report footer doesn't go to the bottom of the page, and the page footer doesn't go to just the last page. I have tested a bunch of suggestions that don't seem to work.

1. Print page footer with Report header = NO - only works if your report is two pages or more.

2. Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
If Page = Pages Then
Me.[TextBoxName].Visible = True
Else
Me.[TextBoxName].Visible = False
End If
End Sub

The Page functions worked, but it did not change the results from page to page. If it was a two page report, then the if statement is false and the text box was not visible on page 1, but it also was not visible on page 2.

View 1 Replies View Related

How To Continue A Form Page After Page Automatically

Jul 9, 2005

to automatically create a second, third, fourth... page depending on how many characters are in the narrative. The only other thing needed to be changed is the page# of Page#.

So right now my form looks like below


CAD#
Person name
Charge

Narrative
"
"
"
"
"
"
"
"
"
"
"
"
"

Officer name date page # of #


Thanks in advance.

Matt

View 1 Replies View Related

Calendar On Page 1 Also Displaying On Page 4 Of Form

Sep 3, 2006

Hi All

I have added the Allen Browne Calendar 2k control to my form.

My form consists of 4 pages. On pages 2 and 3 I have subforms and on page 4 I have Personal data. Page 1 is general data and the Calendar is on Page 1.

What is happening is that the Calendar is also being displayed on my 4th page, in the same position as page 1. When I try to move it, cover it or delete it from page 4, it is also gone from page 1.

Any suggestions please?

Many thanks
Tee :(

View 6 Replies View Related

Reports :: Page Footer To Print On The 1st Page Only

May 17, 2013

I've used the following code on the footer on print procedure:

Private Sub PageFooterSection_Print(Cancel As Integer, PrintCount As Integer)
Me.PageFooterSection.Visible = (Me.[Page] = 1)
End Sub

This works fine when you view it in print preview, but the footer don't show up at all when you actually print it.The reports default view itself is set print preview.

View 3 Replies View Related

Reports :: Generate A Blank Page After Every Page

May 23, 2013

I have made a report on my query. The page setup is all around merging 0.2" and page size A4

When i view this report in preview it looks all my data whatever i want in a page but after every page it will generate a blank page.

I have included my report.

View 2 Replies View Related

Going From Page To Page In A Tabbed Form

Oct 25, 2005

I have a form with six tabbed pages on it. Since data entry follows in a logical order I would like to put a command button on the bottom of each page (subform) that can be used to go to the next page. What I am going to though? If i put a command button (open form) then it opens the whole form not as a subform on a tabbed page. if I try and put a command button (open page) then it will not let me enter the page number. Hope that makes sense! Any ideas

View 3 Replies View Related

Reports :: Dates To Go Across The Page And Not Down The Page

Mar 11, 2014

I am trying to create a report that has the dates go accross the page and not down the page .

Example:

Need:
Jan 2014 Feb 2014 March 2014

Ans so on. I will also need datat under each date.

I am having issues with the reports to give me the output that I need.

View 1 Replies View Related

Reports :: Print Out Single Page Reports (or Forms) To Show Detail From Several Tables And Queries

Apr 21, 2014

I have a database of high-school football players, and I am looking to print out single page reports (or forms) that will show detail from several tables and queries. This will act as their resume when they visit schools on recruiting visits. The reason for needing query items, is that I have developed queries that return the most up to date height, weight, 40 time etc., and that single most up to date number is what should print, not the entire table. When I try to build a report it will let me bring in multiple tables, but not queries.

View 2 Replies View Related

Page Numbering Multiple Reports With References To Page Numbers In Other Reports

Sep 24, 2004

I have seen large projects in which there are clearly several printed database reports printed out to make one booklet.

1. How does one get page numbers for multiple reports to go in sequence instead of starting over again at 1 for each report.

2. How can you add a page reference in one report to something in another report?

Do you have to do these things by hand or is there a way to create a something with auto numbering capabilities? Do you do it by importing the reports to MS Word and creating a master document?

View 2 Replies View Related

Order Details

Nov 7, 2005

Hi Folks,

I'm working on an order management database for a small company and have an order details form which I hoped to list each product of the order. As each customer has a different price per product I have a combo (based on a query) to choose the product and display the unit price (working fine) - the quantity and product ID are also input on the form and stored in the order details table (un-tested). My problem is on the first line of the order you choose the product and it and relevant details are shown, however, on line two, three etc when you choose the product - the other lines change to this too. How do I fix this???

Many Thanks in advance for help given!!

Mary

View 6 Replies View Related

Need A Bit Of Help With The Final Details

Jul 6, 2005

I am almost finished this project. :p There are just a few things left that I would like to do and I need some help.

1. Add an email notification when data on the form has been edited
2. Filter the form for only OPEN orders, status not equal to 6 or 7
3. When an order is closed (status field) I would like to default the "Date Closed" to today, but allow the user to edit the date if need be.
4. Once the status is closed and the date closed is entered, ask the user if they would like to create a followup order.

I have most of #4 done. I added code on the After Update event on the Status field to set the Date Closed to today and then disable the control, then ask if they would like to create the followup order. The users would like to be able to modify the date closed if they don't happen to do the entry until the next day. I have tried adding my code to the After Update of the date (which is updated with a pop up calendar), but once I select the date from the calendar, the focus stays on the date and the user is not prompted to create the followup order.

Any help you can offer would be wonderful

Thanks
Pat

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved