Refresh database

richardplr

Registered User.
Local time
Tomorrow, 05:01
Joined
Jun 10, 2003
Messages
239
Hi,

I just wander whether we can do a refresh of a database in a MS Access

Tks


Regards
 
llkhoutx said:
What do you mean by "refresh?"

Hi

Thank you for your response.

I have attached a example for your references.

Tks



Regards,
 

Attachments

You need to use Requery to refresh the list in your Salesman control after you have selected the supplier.

You're not refreshing the database, just the query on which your list box is based.
 
neileg said:
You need to use Requery to refresh the list in your Salesman control after you have selected the supplier.

You're not refreshing the database, just the query on which your list box is based.

Hi, I am try now

Thank you

Regards,
Richard tan
 
neileg said:
You need to use Requery to refresh the list in your Salesman control after you have selected the supplier.

You're not refreshing the database, just the query on which your list box is based.

Hi.

Referring to the above help, I have tried but not working or may be I have done it wrongly.

I have attached my program for your help please.

Thank you



Regards,
Richard
 

Attachments

Your program is riddled with errors.

The first thing I discovered is the text "requery" of the Saleman textbox (combo220) AfterUpdate event. That has no meaning in Access. To requery you have to name the object you want requeried.

Your naming convention is really bad. Look up the "Hungarian Naming convention." Its in most VB/VBA books.

Yoou need to make Contract No. (PCNO) on your main form unbound and change it to a combobox, which selects a filter for your records. Then add code for the NotInList event to add new contract number. Set the form filter to PCNO and set the form filter property on, then the form timble with a new contract no.

Its hard to tell what you really want to do, but that at least makes your form and subform tumble to a specific contract.

You're really asking a lot for someone to straighten your code out. At least it looks good, even if it doesn't work.

I've attached a zip of my simple chages changes. Look at the PCNO AfterUpdate event code; that's what I changed. Maybe that will help. It appears you really don't have a good grasp of Access and just dove in. But then we all operate that way. Access is usually very forgoving and there's always a way to get something done.

I think my change is what you want.
 

Attachments

Hi Richard,

I've make some amendment to your sample DB, hopefully can solve your problem.

C U at JB during festival Hari Raya Holiday.

Best regards,
 

Attachments

haj1503 said:
Hi Richard,

I've make some amendment to your sample DB, hopefully can solve your problem.

C U at JB during festival Hari Raya Holiday.

Best regards,

Hi

Selamat Hari Raya, I think I am not going to JB.

You are expert. do you have any hotmail email, so that we can chat on windows msger. (My email address: richard_tan69@hotmail.com)

I have try on my program, it work perfectly well.

Thank you


Regards,
Richard Tan
 
Hi Richard,

I'm not a expert but I've learn a lot from MS Access Discussion specially access-programmers.co.uk, good luck for the administrator :) :D :) :) :)

best regards
 

Users who are viewing this thread

Back
Top Bottom