I'm working on a database that has no tables only forms | Newbie | | Join Date: Sep 2009
Posts: 7
| | |
I have been employed by a company to update their database.
The old database was not on access, but the data can be exported to excel
When I opened the new Access database, there was only form, no tables.
How can you create tables for a database that already has forms, isn't this working backwards, and extremely difficult if you did not design the database.
| |
best answer - posted by NeoPa |
I looked at the screenshot, but I have no idea why you posted it. It has no relevance that I can understand.
Anyway, try F11 to see your Database Window.
|  | Administrator | | Join Date: Oct 2006 Location: London - UK
Posts: 15,672
| | | re: I'm working on a database that has no tables only forms
That really all depends on various information you haven't shared with us.
At the least I expect it would be a complicated process though.
If you're actually after some advice though, you'll need to share a bit more detailed information of your problem with us I'm afraid.
|  | Expert | | Join Date: Apr 2006 Location: Philadelphia
Posts: 5,213
| | | re: I'm working on a database that has no tables only forms Quote:
Originally Posted by ratedaargh I have been employed by a company to update their database.
The old database was not on access, but the data can be exported to excel
When I opened the new Access database, there was only form, no tables.
How can you create tables for a database that already has forms, isn't this working backwards, and extremely difficult if you did not design the database. - Does this Form have 1 or several Sub-Forms? This would be an indication of what prior Table Relationships may have been.
- See if the Form has a Record Source Property. You may luck out and see an SQL Statement which would indicate exactly what the Data Source for the Form was and the Tables involved.
- See if each Control on the Form has a Control Source Property which would indicate to which Field each Control was Bound.
|  | Expert | | Join Date: Jan 2008 Location: Sydney
Posts: 783
| | | re: I'm working on a database that has no tables only forms
Could it be possible that the database does actually have tables but you can't see them because they are hidden.
In Access if you right click on a table and select properties.
There is a "hidden" option in there that, if checked, will hide the table from view.
If this is the case you will need to go to
tools/options/view and check the "hidden objects" option.
Its a pretty lame way of preventing users from directly accessing sensitive tables. Lame because it relies on the user not knowning how to force them to be shown.
|  | Expert | | Join Date: Apr 2006 Location: Philadelphia
Posts: 5,213
| | | re: I'm working on a database that has no tables only forms Quote:
Originally Posted by Delerna Could it be possible that the database does actually have tables but you can't see them because they are hidden.
In Access if you right click on a table and select properties.
There is a "hidden" option in there that, if checked, will hide the table from view.
If this is the case you will need to go to
tools/options/view and check the "hidden objects" option.
Its a pretty lame way of preventing users from directly accessing sensitive tables. Lame because it relies on the user not knowning how to force them to be shown. Very good point Delerna, one that should have been my first! (LOL)!
| | Newbie | | Join Date: Sep 2009
Posts: 7
| | | re: I'm working on a database that has no tables only forms
thankyou everyone, I have since found the tables, They were hidden, and while they are significantly lacking, they are there! The database is going along fine and dandy like.
While I was mucking around on the first day i created some more tables, which I now do not need, but can't seem to get rid of them. This seems like a totally lameo question, but how the hell do I delete tables, I can delete the records in the tables, but not the table!
|  | Administrator | | Join Date: Oct 2006 Location: London - UK
Posts: 15,672
| | | re: I'm working on a database that has no tables only forms
From the Database window select the Tables pane. Select a table then hit the Del key.
| | Newbie | | Join Date: Sep 2009
Posts: 7
| | | re: I'm working on a database that has no tables only forms
yeah you'd think it would be that simple, but these tables just won't delete, I hit the delete key so many times my puter froze!
|  | Administrator | | Join Date: Oct 2006 Location: London - UK
Posts: 15,672
| | | re: I'm working on a database that has no tables only forms
In that case there must be something non-standard about your database or the tables themselves. Obviously, without that information we cannot easily help you (as, whatever the difference is, you haven't shared with us yet).
If the database is not too large why not attach it and I'll have a look and see what I can see. When attaching your work please follow the following steps first : - Remove anything not relevant to the problem. This is not necessary in all circumstances but some databases can be very bulky and some things do not effect the actual problem at all.
- If you've done anything in step 1 then make sure that the problem you're experiencing is still evident in the cut-down version.
- Compact the database.
- Put the database into a ZIP file.
- When posting, select Manage Attachments and add this new ZIP file.
| | Newbie | | Join Date: Sep 2009
Posts: 7
| | | re: I'm working on a database that has no tables only forms
unfortunatly I can not send you the database as that would be breaching the companies security, I'll just have to keep on trying. Yes there seems to be somethign non-standard about it indeedy!
thanks for your help
|  | Expert | | Join Date: Apr 2006 Location: Philadelphia
Posts: 5,213
| | | re: I'm working on a database that has no tables only forms Quote:
Originally Posted by ratedaargh unfortunatly I can not send you the database as that would be breaching the companies security, I'll just have to keep on trying. Yes there seems to be somethign non-standard about it indeedy!
thanks for your help Here is a real looooooooooooooooooong shot, but it still is worth a try. Attempt to DELETE your Tables programmatically by passing their Names as a Comma-Delimited String to a Public Sub-Routine as follows: - Sub-Routine Definition
- Public Sub DeleteTables(strTables As String)
-
On Error Resume Next
-
Dim varTables As Variant
-
Dim intCounter As Integer
-
-
varTables = Split(strTables, ",")
-
-
For intCounter = LBound(varTables) To UBound(varTables)
-
CurrentDb.TableDefs.Delete varTables(intCounter)
-
Next
-
-
RefreshDatabaseWindow
-
End Sub
- Sample Call to DeleteTables()
- Call DeleteTables("Table1,Table2,Table3,Table4,tblTest")
|  | Expert | | Join Date: Sep 2007
Posts: 268
| | | re: I'm working on a database that has no tables only forms
Be sure to remove any table Relationships defined in the database as well (Database Tools->Relationships). If you try to delete a table that is part of a relationship, it should warn you first. Maybe this warning isnt appearing for some reason, and therefore nothing happens when hitting delete?
|  | Administrator | | Join Date: Oct 2006 Location: London - UK
Posts: 15,672
| | | re: I'm working on a database that has no tables only forms Quote:
Originally Posted by ratedaargh unfortunatly I can not send you the database as that would be breaching the company's security, I'll just have to keep on trying. To be honest, from a database we may be able to find the problem, but there's no guarantee really.
Normally though, as we too would like you to remove anything irrelevant before posting, I would have thought a sanitised copy would pass most security procedures. You know best of course. We can only talk generally.
Good luck anyway :)
|  | Administrator | | Join Date: Oct 2006 Location: London - UK
Posts: 15,672
| | | re: I'm working on a database that has no tables only forms
So much good posting since I last refreshed.
Megalog's idea is well worth testing. If this proves to be the case then you should look at setting warnings back on (I'll cover that).
ADezii's code is good for the whole job. A quick test of the viability of this would be (Copy and paste this into the Immediate Pane of your IDE) : - Call DoCmd.SetWarnings(True)
-
Call CurrentDb.TableDefs("TableName").Delete
Make sure you replace "TableName" with a string containing a valid table from your database that you want deleted.
| | Newbie | | Join Date: Sep 2009
Posts: 7
| | | re: I'm working on a database that has no tables only forms
hi all, back to original question,
How do I find the tables?????
I found them last week by accident, but since have lost them again and can't remember how it was done! I can't find a tools/option/hidden files menu. Attached is a screen grab of what the menue looks like, any suggestions to get my tables back???????
|  | Administrator | | Join Date: Oct 2006 Location: London - UK
Posts: 15,672
| | | re: I'm working on a database that has no tables only forms
I looked at the screenshot, but I have no idea why you posted it. It has no relevance that I can understand.
Anyway, try F11 to see your Database Window.
| | Newbie | | Join Date: Sep 2009
Posts: 7
| | | re: I'm working on a database that has no tables only forms
Thank you, i don't know why i put the screen shot on either, just trying all angles!
|  | Administrator | | Join Date: Oct 2006 Location: London - UK
Posts: 15,672
| | | re: I'm working on a database that has no tables only forms Quote:
Originally Posted by ratedaargh Thank you, i don't know why i put the screen shot on either, just trying all angles! I can understand that ;)
I assume that the F11 worked for you then?
| | Newbie | | Join Date: Sep 2009
Posts: 7
| | | re: I'm working on a database that has no tables only forms
yes, amazing how one keystroke can make your day! once again, thankyou lifesaver NeoPa
|  | Similar Microsoft Access / VBA bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,272 network members.
|