Hi
I want to know how can I make my database that the user can add a field to a table from a form or sth?
thanks
massivefermion
3
Junior Poster
Recommended Answers
Jump to Postyou need to explain what you are trying to do a little clearer.
If you actually mean you want to give the user alter control in your database to add their own fields to your tables this is very bad practice and should never be done.
If what …
Jump to PostIf that is the case you will have to use the alter command.
This is the syntax for addding a column in Access.
ALTER TABLE table {ADD {COLUMN field type[(size)] [NOT NULL] [CONSTRAINT index] }
If you google 'VBA MS Access ALTER TABLE' you should get alot …
Jump to PostIn your form you should have a submit button. On the submit action you will add the alter commands. Like I said earlier it has been ages since I have even looked at Access but you should be able to double click on the button on the form which should …
Jump to PostLike I said earlier I am not an Access forms guru but I would guess that you would have to access the text boxes attributes from the macro. Something like 'textbox1.text', but again unless someone else who knows more about access form development chimes in I would suggest either reference …
All 15 Replies
cgyrob
61
Junior Poster
massivefermion
3
Junior Poster
cgyrob
61
Junior Poster
massivefermion
3
Junior Poster
cgyrob
61
Junior Poster
massivefermion
3
Junior Poster
cgyrob
61
Junior Poster
massivefermion
3
Junior Poster
cgyrob
61
Junior Poster
massivefermion
3
Junior Poster
cgyrob
61
Junior Poster
massivefermion
3
Junior Poster
cgyrob
61
Junior Poster
massivefermion
3
Junior Poster
cgyrob
61
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.