here it iscan you please help me with my sql project. Problem is i have edit button and whenever i select a whole and edit it this change applies to all the date in my table.
is it a visual basic application that you are running?
please note that in a software you have different layers and parts.
the ui, which is the user interface (front end)
and the back end which is the behind of the scenes of the software / application
behind the back end, you have the database that holds the data, that's where the SQL comes in hand
what you are showing here is the ui, when clicking on the button, some code runs and queries the database and requests an update.
please share the code or the query itself and we are going to be able to help you.
a quick hint, when updating, you need to filter the relevant row for it to be updated; example :
update table
set [column = value]
where (filter)
if the filter is not set, all of the rows of that column will be updated.
Related
Is there a way I can modify the table data in an Azure SQL database via some sort of UI (like Excel) instead of having to write SQL queries? Preferably I can modify it online in the Azure Portal instead of having to install some third-party software.
Often times, I just want to edit a specific cell in the table and I feel it would be way easier if I could just double click on that specific cell to edit it instead of having to write a SQL query.
Right now, I am only able to edit data by writing queries, but I can't actually edit the data in the table by double-clicking (the red box highlighted is uneditable).
You can edit row on double click. On Azure portal follow these steps.
Go to Azure Sql database.
Left side menu blade select Query Editor
Connect to database. and under Tables folder click table three dot. popup small window open, select Edit Data(Preview).
select Preview terms check box, then click ok.
Double click on row , edit row enable.
Change on FirstName from Punit to Sunit. Click top menu Save button and its save record to database.
Final result.
Please forgive me if this question is too vague or extensive. I have limited experience with Access, SQL, and VBA and have a problem at work that I just can't solve. I'm trying to add a "new button" button to the user interface on our Access database.
I would like it to maybe bring up another form that allows you to input a query you want to make into a quick link on the home page. Obviously this would only be accessible to certain users but I can handle that part.
I don't necessarily need the code written, just an idea of where to start. So far all I've been able to do is hard code a new query or link into a button each team I want to make one. I want this process to be simplified so that anybody can make a button even if they don't know how to use Access very well.
Again, any help would be greatly appreciated and feel free to tell me to get lost if this is too vast or general a question.
I would like it to maybe bring up another form that allows you to input a query
The above seems very confusing. You are asking how a form can be used or launched or displayed to allow the user to add a new record. Then you toss in this VERY unrelated concept of some query? What does some query have to do with adding a new record?
If you want to add a new record, and you are in a form that is displaying current records, then behind the button, you can execute this line of code to jump to a new record ready for data entry:
DoCmd.GoToRecord , , acNewRec
So, that is one line of code.
If you want to launch an existing form and have it start out with a new clean fresh record, then use this:
DoCmd.OpenForm "frmCustomers", , , , acFormAdd
The above will launch the given from in "add mode" and thus you are again on a new fresh record ready for data entry.
The issue(s) of some query etc. for the user What does that have to do with wanting the user to add a new record? So that part does not seem to apply to the basic idea of presenting a form with a new record which allows the user to add that record in question.
You have to explain what all the hub bub about this magic query issue but to jump a form to a new record for the user? Just use the first line of code behind a button.
And if you need to launch a form in "add mode", then use the 2nd example one line of code behind the button in question. None of this has really anything to do with some "query" in regards to you wanting the user to add a new record. You can expand on what you mean by some user query, but you have several options to jump an existing form to a new record, or launch a form in "add mode" to allow adding of a record. In these cases, you don't need nor want to write or deal with some SQL query.
To start, I am using Access 2003 and have a similar project that works correctly that I designed.
I am stumped as to why a particular field will not change dynamically like every other field until I "refresh".
Currently I have a task list that lists all items that need to be works. Containing a Status: New, Open, Closed; The account number, person who is working it and more.
The tasklist is just a form with a subform with a datasheet view that opens the task when you double click it. If a user opens a task, that task will be locked until they move on. If any information that is viewed in the task list is changed, it dynamically updates, all but the Status (which really is the most important) until the user manually refreshes it.
Does anyone know what I need to look for that would cause this? The Status is stored as an integer that joins with it's true value. I thought this may be the reason, however I have a similar tool I designed does not have this issue.
I've look into how they are joined, the code that changes this value, everything seems the same between the working and not working.
Any advice?
Thanks in advance.
edit any fields that are JOINED, do not seem to dynamically update until I hit refresh. However, the other database has this working. What am I missing that is different between them.
Solved.
I changed the object displaying the field from a textbox to a combobox, showed two columns with widths 0";1" and it works.
I am using the Oracle app iprocurement, and I want to verify things I see in the backend database. So I may be on a Requisition page in Oracle forms, and I want to see how it is stored in the Db. My colleague says I can use the option Help --> Diagnostics --> Examine , but I'm not seeing how this helps :
I get this picture :
but how do I then go back into the database and locate what this is? Is the table called NAVIGATOR here ? thanks
Use Help -->Record History
Yes, the navigation, Help --> Diagnostics --> Examine, does enable you to see information about the Oracle Application form’s code block (one can open the form’s code and examine the block and determine record information in this manner).
More often than not, I just navigate toHelp --> Record History.
Before I do anything, I enable diagnostics for my profile.
Navigate as follows: System Administrator>Profile>Personal
In the Find System Profile Values dialog box, search for “FND: Diagnostics” enter and save “Yes” for the User Value.
Next I navigate to a form. On the Forms menu, select Help and Record History:
You will then see the database record history.
I'd recommend you start with Help --> Record History
If available (not all forms/records support it) it will tell you the name of the table (or view) containing the current record. Help --> Diagnostics --> Examine will show you the contents of the current field (it's value), the field's name and which form block it exists in. There's no guaranteed mapping from form blocks to database tables or views, so while it may at times be helpful, much of the time it's not.
You can, however, open the form in Forms Builder find the named form block (determined by inspecting Help --> Diagnostics --> Examine) and eventually figure out which queries and code blocks populate the form blocks and fields of interest.
To know what form you need to inspect with Forms Bulider you can use Help --> About Oracle Applications while viewing the desired form. The form name will be listed in the Current Form section.
How can I do that?
I already have the code I'm working on but it seems that it doesnt work really fine.
Here is how my program works. I input an id number(unique) on a text box and click the search button. The entries that corresponds to the id number is then displayed on the other text boxes.
And then I try to edit one of the entries manually(changing its letters or name) then I click the update button.
Here is now the problem: It really updates the entry but it makes a mirror of the entry with a different id number(maybe automatically generated).
So basically the ms access database will now contain the old entry and the updated version of the entry.
I can show you my code if you wish to. As long as I am assured by your reputation in this site.
Show the code, seems like you are using insert instead of update.
OK, check this link DataAdapter.Update Method
You seem to be missing
' Without the OleDbCommandBuilder this line would fail.
builder.GetUpdateCommand()
before
adapter.Update(dataSet)
Let me know if this works?