473,785 Members | 2,824 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

form-subform question

I can't figure out how to do create this screen. I think I need to use
a form with subForm(but I'm not sure).
Could you direct me to an article. Or give me some advice on how this
is done.

I have an apartment building. And I want to record the (tenant
payment) checks I put onto my bank deposit ticket.

I have 2 tables
1)
TablePaymentsRe ceived it has 3 fields
Date
TenantName
Amount
2)
TableTenantName it has 1 field
TenantName
I want to create a data entrée form to populate the
TablePaymentsRe ceived table just as if
I would be filling out my bank deposit ticket.

The screen will have on top the Date, TenantName, Amount for all the
checks I am putting on the current deposit ticket (perhaps in
datasheet view).There will be no editing allow directly onto this top
part of the screen.

And on the bottom of the screen
There will be

A list box bound to TableTenantName (TenantName) from which I shall
select a TenantName

A text box in which I will enter the $amount paid by selected tenant.

A control button labeled "enter" when pressed the selected TenantName
and amount will be posted to the top of the screen

A control button labeled "apply all" when pressed the list of the
tenants with there payment amount will be applied to the
TablePaymentsRe ceived (so if 5 payment were recorded to the top part
of the screen then 5 new records will be added to
TablePaymentsRe ceived)

A control button labeled "cancel all" witch will clear the screen

Thanks Steven Green
Nov 20 '07 #1
1 1243

Sorry - totally wrong

Table Tennants - TennanantID (AutoNumber) TennantName (Text) and anything
else you want (phone, email etc)
Table Payments - PaymentID (AutoNumber) , TennanantID (Long), PayAmount
(Currency), PayDate (Date)

In your relationships, link the 2 TennantIDs and enforce referential
integrety. So you can't have a payment without a tennant.

Build a form based on Tennants
Build a continuous subform based on Payments

Link the form and subform using the TennantID

Select the tennant (Use a combo box), enter the payment (set the PaymentDate
default to Date() - saves you entering it)

Then you can either have a report showing a tennant and all the payments, or
a report showing payments made between certain dates and who made them

HTH

Phil
<ma*******@gmai l.comwrote in message
news:5b******** *************** ***********@a28 g2000hsc.google groups.com...
I can't figure out how to do create this screen. I think I need to use
a form with subForm(but I'm not sure).
Could you direct me to an article. Or give me some advice on how this
is done.

I have an apartment building. And I want to record the (tenant
payment) checks I put onto my bank deposit ticket.

I have 2 tables
1)
TablePaymentsRe ceived it has 3 fields
Date
TenantName
Amount
2)
TableTenantName it has 1 field
TenantName
I want to create a data entrée form to populate the
TablePaymentsRe ceived table just as if
I would be filling out my bank deposit ticket.

The screen will have on top the Date, TenantName, Amount for all the
checks I am putting on the current deposit ticket (perhaps in
datasheet view).There will be no editing allow directly onto this top
part of the screen.

And on the bottom of the screen
There will be

A list box bound to TableTenantName (TenantName) from which I shall
select a TenantName

A text box in which I will enter the $amount paid by selected tenant.

A control button labeled "enter" when pressed the selected TenantName
and amount will be posted to the top of the screen

A control button labeled "apply all" when pressed the list of the
tenants with there payment amount will be applied to the
TablePaymentsRe ceived (so if 5 payment were recorded to the top part
of the screen then 5 new records will be added to
TablePaymentsRe ceived)

A control button labeled "cancel all" witch will clear the screen

Thanks Steven Green
Nov 23 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2372
by: Andrew Williams | last post by:
Does anyone know of a way to quickly validate an HTML web form? I need to make sure that certain fields on my form actually contain data and are not submitted blank. I have tried using client-side Javascript validation which flags up when a field is empty but the form is still submitted. Here is the ASP code I am using to submit the form to an e- mail with CDONTS:
4
2131
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the same amount of Line Items. If I have all 20 Line Items, it works great. var sub1 = form.Line_Item_Subtotal1.value var sub2 = form.Line_Item_Subtotal2.value var sub3 = form.Line_Item_Subtotal3.value var sub4 = form.Line_Item_Subtotal4.value
19
3611
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the thing you know ;-) After discovering that access 2000 support form properties (I'm a
5
73215
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
4
4580
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET forum). I don't use server controls in it (apart from Page). The problem occurs on the page where visitor can post a new messages. Basically, it's a form with couple of
5
3933
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main form, I trigger the on acitvate event to run a macro. I can use the Dlookup function to update my fields, which is OK. However, I intitially tried to use the Repaint Object command to repaint the form. That did not work. Though I solved the...
3
2340
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table using ADO. I'm getting sometimes correct values, sometimes null values (when I know I pass a valid default value) and other times multiple values! I know what the values coming over are because I do a response.write to see it before the error...
8
36138
by: hoofbeats95 | last post by:
I don't think this should be this complicated, but I can't figure it out. I've worked with C# for several years now, but in a web environment, not with windows form. I have a form with a query button on it. If the query returns multiple results, a new window is opened with a grid containing the results. When the user double clicks on the desired row in the grid, I want the first form to populate with the correct data. I don't know how...
5
2307
by: simononestop | last post by:
Hi im totally new to perl this is my first go at using it (I normally use asp). I have set up a form with a cgi script from demon hosting. I have edited the script and the form works it sends me an email. however all the information is missing form the email I only get the first form text field?? #!/bin/perl # ------------------------------------------------------------
3
2213
by: ibeehbk | last post by:
Hi. I have a form made in xhtml. I test via vbscript to make sure none of the fields are empty and properly formatted (ie email). All the regular fields work. However, I have two drop down menus that are SELECT elements (javascript-- one named arrivalcity and one named returncity). Basically they ask for a departure and return city and another menu appears with options based on that city. I can't seem to get the input from these fields in the...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9949
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.