473,386 Members | 1,842 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,386 software developers and data experts.

Re: Help!!! Access Customer Form List

hi there

urgent help required

i am trying to do a customer search function on my database as well as add edit and delete functions, all were working previously however for some reason its broken now

ive got a sample database if someone is willing to help me
Mar 29 '08 #1
12 1505
Delerna
1,134 Expert 1GB
There are lots of people here who are willing to help you, post more detail reguarding your problem and help you will receive
Mar 30 '08 #2
i am using a customer module and edit and remove buttons on the actual customer form.

basically the delete customer function in the module is giving me errors

Sub DeleteCustomer(CustomerNo As Long)
'used to delete a customer as specified by CustomerNo, called by frmCustomerList

'set reply variable
Dim Reply As Integer

'set the database
Dim dbCustomer As Database

thank you
Mar 30 '08 #3
missinglinq
3,532 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1.  Sub DeleteCustomer(CustomerNo As Long)
  2.     'used to delete a customer as specified by CustomerNo, called by frmCustomerList
  3.  
  4.     'set reply variable
  5.     Dim Reply As Integer
  6.  
  7.     'set the database
  8.     Dim dbCustomer As Database
If this is all the code you have, I'm sure you are getting error messages! We really need to see all of the code from the DeleteCustomer sub, from the line

Sub DeleteCustomer(CustomerNo As Long)

down to the line

End Sub.
i am trying to do a customer search function on my database as well as add edit and delete functions, all were working previously however for some reason its broken now
Also, you need to be a little more explicit as to your actual problems; "its broken now" doesn't really give us a lot of detail!



Welcome to TheScripst!

Linq ;0)>
Mar 30 '08 #4
is it possible for me to send u the file as it is hard for me to describe the error

the code runs with a module please help
Mar 30 '08 #5
missinglinq
3,532 Expert 2GB
You'll need to zip the database up then attach it to your post.


  1. Zip the mdb file
  2. Reply to this post, giving the Access version you're using, so that people who can't run the file don't download it
  3. Hit Submit Reply
  4. Immediately click on the Edit/Delete button (bottom right hand)
  5. Scroll down to gray button marked "Manage Attachments"
  6. Attach the zip file
  7. Click on "Save Changes" button
Linq ;0)>
Mar 30 '08 #6
hi there people i am using microsof access 2000 file format i am sure it will also work on 2003 and 2007 versions

please help me to get this attached database working your help will be highly appreciated
Attached Files
File Type: zip PROJECT HSS ACTUAL.zip (242.9 KB, 81 views)
Mar 30 '08 #7
i am getting errors on my edit customer and remove customer buttons and my search function is totaly not working

Thank You
Mar 30 '08 #8
missinglinq
3,532 Expert 2GB
My best guess would be that you've got some kind of corruption going on. In just going behind the scenes to look at the code, to see how things were set up, I had the app freeze up on me several times! Also, in just scrolling thru code behind the customer list form, Access started hopping back and forth to the code of other forms! I have to say I've never seen anything like it!

I'd try creating a new, blank database, importing all the objects into it, and see if that corrects the problem. If not, you'll need to google using the terms "MS Access" and "corruption" and see what you can find. There're lots of sites out there with good advice on dealing with corruption.

Sorry I can't be of more help!

Linq ;0)>
Mar 30 '08 #9
thank you for your help i shall try that out

thank you
Mar 30 '08 #10
Scott Price
1,384 Expert 1GB
I would agree with Linq... I think you've got some corruption going on. I downloaded your test database, Compacted/Repaired, Decompiled, Compacted/Repaired again, and then opened up the code window to look around.

While trying to re-compile, it hung on several keywords that shouldn't have any problems... Also while attempting to call up the help for DAO.Database (just was testing to see what was happening) DAO didn't register, and Database called up the help section for Option Compare! What this tells me is that there is a disconnect between what the code says in plain text, and what the database thinks it says, which means corruption.

Usually a decompile will help this type of problem, but having already done that on your database, I think it's too far gone for that. You can try doing so more than once, but I'd say your best bet is like Linq suggested, to create a new database from scratch and import all objects into it, then copy and paste the code back in.

Regards,
Scott
Mar 31 '08 #11
missinglinq
3,532 Expert 2GB
Listboxes are meant to be used to select data; Forms are meant to be used to display data. So the real question here is, although this app has apparently worked in the past, why in the world would anyone elect to use a Listbox in this situation, rather than a bound Form? In using a bound form, adding, deleting and editing records can be done, if need be, without the use of a single line of code, while doing it in this manner, with an inappropriate Listbox, requires 182 lines of code!

Linq ;0)>


Linq
Mar 31 '08 #12
thank you very much for ur help looks like im going back to the drawing board :(
Apr 1 '08 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
4
by: morgan.mark | last post by:
I am not an expert at access and I need a little help with a form. I have a form that is linked to a table with address information. My form has a checkbox linked to a field in the database to show...
3
by: Gerrit Snel | last post by:
We have a question but we're in doubt if it's even possible or not. The question is as follows: Is it possible to access a form using a string literal, and if so yes? We want to use...
3
by: rhobson2 | last post by:
Hello, I wrote a database applicaiton using Access XP (2002) and everything has been working good for the client until they purchased a couple of new computers with Access 2003. The meetings...
3
by: emajka21 | last post by:
Hello, and thank you in advance for trying to help me. I am trying to create an access 2000 form without using the wizard. It just doesn't seem like I can the level of complexity I want out of the...
0
by: Yarik | last post by:
Hello, Here is a sample (and very simple) code that binds an Access 2003 form to a fabricated ADO recordset: ' Create recordset... Dim rs As ADODB.Recordset: Set rs = New ADODB.Recordset '...
5
by: sphinney | last post by:
Basic question: Does anyone know how to go about adding a control to an Access 2007 form that will allow viewing a Word 2007 document? Reason for asking: My office is about to receive 100+/-...
1
realayumi
by: realayumi | last post by:
ACCESS 2003 WIN XP Hi, i'm new in access, just a view days, this is my first post. Sorry for my bad English. I have 3 tables. tbl_product
4
by: dfluker | last post by:
This form will not send the email to my account and I used other forms to submit emails using examples that I googled but I can't get this form to process the request. Can someone tell me what i'm...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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...

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.