How do I insert a blank row in a subform in Access similar to Excel. Excel gives to insert a blank line in the middle of other lines, how do I do this in a Subform in Datasheet view in Access?
Inserting blank row in subform in Access
1k Views Asked by Regis Santos At
1
There are 1 best solutions below
Related Questions in MS-ACCESS
- Joining date fields from 2 separate tables in Access 2010. Outer join is acting like an inner join
- Access Global not working
- Dividing summed field by another summed field in the same query
- Edit fields in local table linked to PassThrough Query
- Change Index Settings Access VBA
- On click change chart query in ms access
- Access 2013 - Set a field value based on value of another field
- MS Access, Combobox, select fields bases on query, How do I weight the result fields
- Access SQL: Not Equals on Null Text Field
- MS Access If Function
- How to convert MS Access Database to Mysql with french characters
- MS Access: How to group by first column- summing some columns while keeping others the same
- Using an ODBC connection in Access get retrieve data from DB2
- How to Continuously Develop and Deploy an Access 2010 Database Application
- Adding calendar in ms access and view the data of specific day by clicking the date
Related Questions in VBA
- Import from api into multiple excel cells
- Loop through list of files and open them
- Pull and push data from and into sql databases using Excel VBA without pasting the data in Excel sheets
- Loop with equation for upper limit
- excel vba null value in array
- TextToColumns function uses wrong delimiter
- Access Global not working
- Concatenate string and number as number
- How do I extract info from crunchbase
- Excel needs to pull substring values to variables
- Act on Outlook mail item when opened for editing
- Macro is not working
- Excel 2013 VBA opening multiple windows for a single workbook
- Hyperlink directs to hidden row
- How to modify data in a range of a column of cells that are not blank
Related Questions in SUBFORM
- Is it possible to disable/enable controls in an Access Subform for a specific record? Access 2000 - VBA
- Access continuous subform with checkboxes to store ticked values with mainforms id
- how do I filter a subform from a combobox that is loctated in another subform in access?
- Checkbox controls subform visibility - how to keep it visible when form is reopened?
- Zoho Creator: Sort sub-form records in both Main Forms and Views/Reports
- Subform OnCurrent Error on Main Form Open
- Referring to table fields in subform, in VBA
- Update control value on parent form when all values on subform are changed to a certain value
- How to set form data for a Joomla subform?
- Application Exception in tapestry subforms - Parameter is bound to null
- Continuous Subform With Different Controls Based On Source Record
- Inserting blank row in subform in Access
- How to lock a record in an access subform
- access 2003 cycle current page not working if subform is in form view
- Access: Entering multiple subform values with one entry in the form
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is not really possible without doing some gymnastics. Datasheet views aren't really an Excel replacement even if they look similar.
Do put in a blank row you would need to create a new record that is completely blank and save it that way. You would also need to have a field that you use to set the Order of the Rows, and you'd have to set the value of that field so that the row would be inserted where you want it to be. That usually means rewriting the values of all the other rows below as well. And finally, you'd need to requery the form so that the blank row shows up where you want it to. The end result of this is that you have a blank record saved, and that you can't setup any validation rules to prevent that.
One of the only other ways to accomplish this would be to do basically the same thing but using either a disconnected ADO recordset or else a "temp table". This means that when the user actually chooses to save their changes you would need to use code to write the records back into the database. Although this is a pretty good idea, it is a fairly advanced technique and not something I recommend beginners tackling without some guidance.
There is one more option you might consider yet and that is using an ActiveX grid control such as iGrid from 10tec or the MS List View control. Most developers do recommend staying away from ActiveX controls, and for good reasons. If you do go this route, it's also going to be code intense. You'll have to write code to fill the grid, and write more code to write changes back to the database. It's also quite advanced and not something for the faint of heart and hardly something I recommend for the beginner.
In short, Access is not really designed to do what you want to do here. At least not easily.