473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Molehill into Mt. Everest

I've got a database project I've been working on and I've got a couple
of questions -- It's a one-to-one situation with project info and it's
respective financial information (monthly).

1st - I didn't see any way or reason to break it into multiple tables
-- should I have done this? The table has LOTS O' FIELDS.

2nd - When adding new information for a new project, I've got it set up
as a separate pop-up form. The problem is, when you add the new
information, the main form (based on a query)is not updated with the
new information. You've got to close and reopen the main form.

I'd appreciate any advice/help --

Nov 13 '05 #1
6 1245
> I've got a database project I've been working on and I've got a couple
of questions -- It's a one-to-one situation with project info and it's
respective financial information (monthly).

1st - I didn't see any way or reason to break it into multiple tables
-- should I have done this? The table has LOTS O' FIELDS.
Find reading material on the topic 'normalisation'.
2nd - When adding new information for a new project, I've got it set up
as a separate pop-up form. The problem is, when you add the new
information, the main form (based on a query)is not updated with the
new information. You've got to close and reopen the main form.


Well, *you* have created your problem. :-) How does the separate form
differ from your main form? Maybe you can find some way to use that for
both purposes. But then again, it may be too complicated to be
efficient, if you use the same form for browsing, for editing and for
adding. I can see that.

When the popup form closes, the Close event fires. That is a nice place
to requery the main form:

forms!yourmainformname.requery
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

Nov 13 '05 #2
Thanks for the tip -- that worked like a charm! I'm going to do some
studying up on normalization --

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #3
OK, I've got one more question -- I got the record to show up using
your suggestion (thanks!), but now I need to have all fields show a
default value of zero as soon as the new record is created.... I've
tried all I can think of and can't get it going.

I'm visual basically challenged... :-)

Kris P.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #4
On Fri, 08 Jul 2005 14:16:01 GMT, Kris Pilarski
<kp*******@ewingcole.com> wrote:

If 0 is an appropriate default for those fields, set that default
value in the table design.

-Tom.

OK, I've got one more question -- I got the record to show up using
your suggestion (thanks!), but now I need to have all fields show a
default value of zero as soon as the new record is created.... I've
tried all I can think of and can't get it going.

I'm visual basically challenged... :-)

Kris P.
*** Sent via Developersdex http://www.developersdex.com ***


Nov 13 '05 #5
I've got the default value set to 0 in the table AND on each field and
still nothing. The form is based on a query (based on that table) and
even when I run the query the fields do not get populated with default
0.00.

Kris P.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #6
A default value will not affect already-existing records, only new records
at the moment of creation. And, you should only need the default value set
for the table itself. (Your mention of "running a query" implies to me that
you are seeing previously-created records.)

If you are creating a new record with these defaults set, and it's not
filling in your default values, something else is up.

If you just need to go back and "fix" previously-created records, run an
update query to set NULL fields to your desired default value. (You'll
probably need an update query for each field, but it's a one-time thing.)

Anne

"Kris Pilarski" <kp*******@ewingcole.com> wrote in message
news:Kz***************@news.uswest.net...
I've got the default value set to 0 in the table AND on each field and
still nothing. The form is based on a query (based on that table) and
even when I run the query the fields do not get populated with default
0.00.

Kris P.
*** Sent via Developersdex http://www.developersdex.com ***

Nov 13 '05 #7

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

Similar topics

11
by: Ian Rastall | last post by:
In a project mentioned in another thread, I'm trying to get some dynamic data to work. In this discography, you can click on an album name, and the title of the album and its tracks will appear on...
20
by: Daniel R. Smorey Jr. | last post by:
I'm looking for a good place for Python documentation. I'm really lost on why it's so hard to find anything when it comes to me looking up a particular function in Python. My example would be the...
5
by: Steven Gutstein | last post by:
I've just managed to get PyOpenGL installed on a Windows NT machine. I've tried testing it using one of the programs supplied with the PyOpenGL download - molehill.py. On my machine, it was placed...
99
by: dvdsum | last post by:
Hello, my english is very poor, excuse me. I want that someone explains several things. Ok, Windows, as well as other modern operating systems, gives a set of functions called API. The...
5
bartonc
by: bartonc | last post by:
I've tried many of the downloadable options. Does this board even have a sensor on it? I just got hmonitor; will try that next. I have tried SpeedFan and version 5 something of what looked like the...
36
by: castironpi | last post by:
I'm a little dissatisfied, and just thinking aloud. Some of the ideas that have been proposed on Python-ideas as well as Python, have received partial evaluation from the alphas. Lesser...
0
by: magicalnepal | last post by:
Rath Nepal invites you for ultimate challenge during your vacation. The Everest Marathon is a 30 days holiday in Nepal organised by Rath Nepal Tours and Travel Pvt.Ltd, combining sightseeing in...
3
Markus
by: Markus | last post by:
I'm in need of finding the name of the harddrive. I'm running Vista. It's not a secondary one that I've installed, but the default one that came installed with Vista. I have googled, but nothing...
5
by: samvb | last post by:
Hey, Today i came across a computer with unspecified motherboard. Nothing in BIOS. I tried PCWizard, Sys Info and unknown devices. The motherboard model is totally unspecified. I checked the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.