A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how to handle meter readings



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old November 16th, 2009, 02:19 PM posted to microsoft.public.access.tablesdbdesign
BruceM via AccessMonster.com
external usenet poster
 
Posts: 448
Default how to handle meter readings

You would generally use an unbound combo box for searching. I can't tell if
you have done that, so I'm mentioning it. You say that part is working OK,
so I assume you have this set up correctly.

The subform is in a "box" on the main form. The box is the subform control.
Be sure its Link Child and Link Master properties are set to the linking
fields. To view the subform control property sheet, click the subform to
select it, then click View Properties. Be sure you are looking at the
control properties, which will be labeled something like Subform/Subreport:
ControlName. Click the three dots next to Link Child or Link Master. Access
will probably select the correct fields if the tables are properly related.

deb wrote:
i did that, on the combo box on the main form the row source is

SELECT [ElectricityMeter].[ElectricityMeterID],
[ElectricityMeter].[MeterNumber] FROM ElectricityMeter ORDER BY
[MeterNumber];

the record source for the main form is ElectricityMeter

on the sub form the source object is MeterReading
link child and master are ElectricityMeterID

the ElectricityMeter table has
ElectricityMeterID (link field)
MeterNumber
BuildingID
LocationID

the MeterReading table has
MeterReadingID
ElectricityMeterID (link field)
ReadingDate
PeakReading
OffPeakReading

linked with enforced referential integrity

so you select the meter number from the combo box, fill in the date and
readings - all good except its not picking up the ElectricityMeterID in the
MeterReading table

what am i missing?

If you have a meter table and a related readings table, with a form and
subform for data entry, you can use an unbound combo box on the main form to

[quoted text clipped - 22 lines]

Just so it's billable hours...


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...esign/200911/1

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.