If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Show all records even if empty to a max of 14?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-10, 12:51
Gwyar Gwyar is offline
Registered User
 
Join Date: Jan 2008
Posts: 114
Show all records even if empty to a max of 14?

Hello
Im trying to print a report that will show all current clients: But only to a maximum of 14.
I have 14 beds, so I would like to print all 14 records, even of we only have 10 clients or whatever.
So there will be 10 clients names and 4 blank spaces.
5 clients and 9 blank spaces
8 clients and 6 blank spaces..

Always to a total of 14.

Thank you much

Tracy
Reply With Quote
  #2 (permalink)  
Old 02-07-10, 13:30
RuralGuy RuralGuy is offline
Registered User
 
Join Date: Mar 2007
Posts: 274
Are there 14 records in the RecordSource of your Report?
__________________
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP, ac07, ac10 - WinXP Pro, Win7 Pro
Please reply to this forum so all may learn.
Reply With Quote
  #3 (permalink)  
Old 02-07-10, 13:34
Gwyar Gwyar is offline
Registered User
 
Join Date: Jan 2008
Posts: 114
Hello...
No there are at least 60 and more will be added...

Tracy
Reply With Quote
  #4 (permalink)  
Old 02-07-10, 13:40
RuralGuy RuralGuy is offline
Registered User
 
Join Date: Mar 2007
Posts: 274
The easiest way would be to create a temporary table with exactly 14 records and populate it as you need.
__________________
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP, ac07, ac10 - WinXP Pro, Win7 Pro
Please reply to this forum so all may learn.
Reply With Quote
  #5 (permalink)  
Old 02-07-10, 13:45
Gwyar Gwyar is offline
Registered User
 
Join Date: Jan 2008
Posts: 114
ohhhhh.... never thought of that....
Have to see what I can dig up..

Course.. if you want to point me in the right direction... I could buy you a kitkat?


Tracy
Reply With Quote
  #6 (permalink)  
Old 02-07-10, 13:48
RuralGuy RuralGuy is offline
Registered User
 
Join Date: Mar 2007
Posts: 274
SELECT TOP 14 might be useful and then check the number of records and add enough blank records to get to 14.
__________________
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP, ac07, ac10 - WinXP Pro, Win7 Pro
Please reply to this forum so all may learn.
Reply With Quote
  #7 (permalink)  
Old 02-07-10, 14:24
Gwyar Gwyar is offline
Registered User
 
Join Date: Jan 2008
Posts: 114

I love this place...Thank you kind sir.
It works like a charm..
Here's what I did in case anyone else wants to do it...

Made a query in the Backend DB which returns all current clients.
In design view of the query click the Make Table button. Name your table
Open said table. All current clients are listed. I just added some blank records to the total I wanted. It wont accept nothing in the field so I just put a space.

In the Frontend I made a report from the new table that was created.
All works great.
Just click a button. I think my users will be able to do that :0

Thanks so much

Tracy
Reply With Quote
  #8 (permalink)  
Old 02-07-10, 14:26
RuralGuy RuralGuy is offline
Registered User
 
Join Date: Mar 2007
Posts: 274
Glad we could help Tracy.
__________________
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP, ac07, ac10 - WinXP Pro, Win7 Pro
Please reply to this forum so all may learn.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On